From 782da9d091852750bcb5490d053b407bcd88462d Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Thu, 11 Feb 2021 21:05:01 +0100 Subject: [PATCH] contrib: alpine: fix reboot/shutdown/halt/suspend symlinks Signed-off-by: Joachim Wiberg --- contrib/alpine/install.sh | 6 ++++++ contrib/alpine/uninstall.sh | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/contrib/alpine/install.sh b/contrib/alpine/install.sh index 714997ee..2107e056 100755 --- a/contrib/alpine/install.sh +++ b/contrib/alpine/install.sh @@ -41,6 +41,12 @@ if [ "x$yorn" = "xy" -o "x$yorn" = "xY" ]; then cd /sbin rm init ln -s finit init + + rm halt shutdown reboot suspend + ln -s reboot halt + ln -s reboot shutdown + ln -s reboot reboot + ln -s reboot suspend fi echo "*** Done" echo diff --git a/contrib/alpine/uninstall.sh b/contrib/alpine/uninstall.sh index 59bfb618..6f3c9981 100755 --- a/contrib/alpine/uninstall.sh +++ b/contrib/alpine/uninstall.sh @@ -24,6 +24,12 @@ if [ "x$yorn" = "xy" -o "x$yorn" = "xY" ]; then cd /sbin rm init ln -s /bin/busybox init + + rm halt shutdown reboot suspend + ln -s /bin/busybox halt + ln -s /bin/busybox shutdown + ln -s /bin/busybox reboot + ln -s /bin/busybox suspend echo "*** Done" echo else