summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2016-03-17 14:06:46 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2016-03-17 14:06:46 +0000
commit96893711ec76b3c3b554313d7e97560b3cd62179 (patch)
treea783948a9d20e8a8434c63ba928c290b22ddb363 /package
parent82776d2fe715afcded74b3841f6d9a5b410e16c5 (diff)
downloads6-linux-utils-96893711ec76b3c3b554313d7e97560b3cd62179.tar.xz
Add halt, poweroff, reboot as unexported commands
Diffstat (limited to 'package')
-rw-r--r--package/deps.mak10
-rw-r--r--package/modes3
-rw-r--r--package/targets.mak3
3 files changed, 15 insertions, 1 deletions
diff --git a/package/deps.mak b/package/deps.mak
index 00606ca..0eb59f1 100644
--- a/package/deps.mak
+++ b/package/deps.mak
@@ -2,6 +2,10 @@
# This file has been generated by tools/gen-deps.sh
#
+src/minutils/halt.o src/minutils/halt.lo: src/minutils/halt.c
+src/minutils/hpr.o src/minutils/hpr.lo: src/minutils/hpr.c
+src/minutils/poweroff.o src/minutils/poweroff.lo: src/minutils/poweroff.c
+src/minutils/reboot.o src/minutils/reboot.lo: src/minutils/reboot.c
src/minutils/s6-chroot.o src/minutils/s6-chroot.lo: src/minutils/s6-chroot.c
src/minutils/s6-devd.o src/minutils/s6-devd.lo: src/minutils/s6-devd.c src/include/s6-linux-utils/config.h
src/minutils/s6-freeramdisk.o src/minutils/s6-freeramdisk.lo: src/minutils/s6-freeramdisk.c
@@ -26,6 +30,12 @@ src/minutils/s6ps_statparse.o src/minutils/s6ps_statparse.lo: src/minutils/s6ps_
src/minutils/s6ps_ttycache.o src/minutils/s6ps_ttycache.lo: src/minutils/s6ps_ttycache.c src/minutils/s6-ps.h
src/minutils/s6ps_wchan.o src/minutils/s6ps_wchan.lo: src/minutils/s6ps_wchan.c src/minutils/s6-ps.h
+halt: EXTRA_LIBS :=
+halt: src/minutils/halt.o -lskarnet
+poweroff: EXTRA_LIBS :=
+poweroff: src/minutils/poweroff.o -lskarnet
+reboot: EXTRA_LIBS :=
+reboot: src/minutils/reboot.o -lskarnet
s6-chroot: EXTRA_LIBS :=
s6-chroot: src/minutils/s6-chroot.o -lskarnet
s6-devd: EXTRA_LIBS :=
diff --git a/package/modes b/package/modes
index 3905269..b07ddd8 100644
--- a/package/modes
+++ b/package/modes
@@ -14,3 +14,6 @@ s6-reboot 0700
s6-swapoff 0700
s6-swapon 0700
s6-umount 0700
+halt 0700
+poweroff 0700
+reboot 0700
diff --git a/package/targets.mak b/package/targets.mak
index 14bc019..964f9aa 100644
--- a/package/targets.mak
+++ b/package/targets.mak
@@ -17,4 +17,5 @@ s6-swapon \
s6-umount \
SBIN_TARGETS :=
-LIBEXEC_TARGETS :=
+LIBEXEC_TARGETS := halt poweroff reboot
+