mirror of
https://github.com/troglobit/finit.git
synced 2026-11-08 16:11:10 +00:00
contrib: alpine: fix reboot/shutdown/halt/suspend symlinks
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
a45e2c6831
commit
782da9d091
2 files changed
+12
No files matched your search
@@ -41,6 +41,12 @@ if [ "x$yorn" = "xy" -o "x$yorn" = "xY" ]; then
|
|||||||
cd /sbin
|
cd /sbin
|
||||||
rm init
|
rm init
|
||||||
ln -s finit 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
|
fi
|
||||||
echo "*** Done"
|
echo "*** Done"
|
||||||
echo
|
echo
|
||||||
|
|||||||
@@ -24,6 +24,12 @@ if [ "x$yorn" = "xy" -o "x$yorn" = "xY" ]; then
|
|||||||
cd /sbin
|
cd /sbin
|
||||||
rm init
|
rm init
|
||||||
ln -s /bin/busybox 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 "*** Done"
|
||||||
echo
|
echo
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user