From 60d66e82af2883a18b76bcd74e4a4ec0706b8415 Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Tue, 6 Nov 2018 11:32:32 +0000 Subject: [PATCH] Install halt and reboot as links to shutdown. Until now, halt and reboot were shell scripts that called shutdown. --- src/Makefile | 3 ++- src/halt | 3 --- src/reboot | 2 -- 3 files changed, 2 insertions(+), 6 deletions(-) delete mode 100755 src/halt delete mode 100755 src/reboot diff --git a/src/Makefile b/src/Makefile index 3745a42..4f346b2 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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 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 index c607879..0000000 --- a/src/reboot +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -shutdown -r "$@" -- 2.25.1