Install halt and reboot as links to shutdown.
authorDavin McCall <davmac@davmac.org>
Tue, 6 Nov 2018 11:32:32 +0000 (11:32 +0000)
committerDavin McCall <davmac@davmac.org>
Tue, 6 Nov 2018 11:32:32 +0000 (11:32 +0000)
Until now, halt and reboot were shell scripts that called shutdown.

src/Makefile
src/halt [deleted file]
src/reboot [deleted file]

index 3745a421a6ae0719a4deaebc524a4774a1e697b1..4f346b29bad36b9b4373915a5821661cee7c2db9 100644 (file)
@@ -39,7 +39,8 @@ install: all
        install -d $(DESTDIR)$(SBINDIR)
        install -s dinit dinitctl $(SHUTDOWN) $(DESTDIR)$(SBINDIR)
 ifeq ($(BUILD_SHUTDOWN),yes)
-       install halt reboot $(DESTDIR)$(SBINDIR)
+       ln $(DESTDIR)$(SBINDIR)\shutdown $(DESTDIR)$(SBINDIR)\halt
+       ln $(DESTDIR)$(SBINDIR)\shutdown $(DESTDIR)$(SBINDIR)\reboot
 endif
 
 clean:
diff --git a/src/halt b/src/halt
deleted file mode 100755 (executable)
index 4987aff..0000000
--- a/src/halt
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-# "halt" command actually executes the more useful "power off".
-shutdown -p "$@"
diff --git a/src/reboot b/src/reboot
deleted file mode 100755 (executable)
index c607879..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-shutdown -r "$@"