diff core/sysvinit/rc.shutdown @ 516:014d018468fb

core: use new FHS
author David Demelier <markand@malikania.fr>
date Tue, 09 Apr 2019 20:22:00 +0200
parents 01b5d3175215
children
line wrap: on
line diff
--- a/core/sysvinit/rc.shutdown	Tue Apr 09 20:20:00 2019 +0200
+++ b/core/sysvinit/rc.shutdown	Tue Apr 09 20:22:00 2019 +0200
@@ -21,20 +21,20 @@
 fi
 
 echo "Terminating all processes."
-/usr/sbin/killall5 -15
+/bin/killall5 -15
 
 echo "Unmounting all filesystems."
-/usr/sbin/halt -w
-/usr/sbin/swapoff -a
+/bin/halt -w
+/bin/swapoff -a
 
-if [ -x /usr/bin/mount ]; then
-	/usr/bin/umount -a -d -r -t nosysfs,noproc,nodevtmpfs
-	/usr/bin/umount -a -r
-	/usr/bin/mount -o remount,ro /
+if [ -x /bin/mount ]; then
+	/bin/umount -a -d -r -t nosysfs,noproc,nodevtmpfs
+	/bin/umount -a -r
+	/bin/mount -o remount,ro /
 fi
 
 if [ "$1" = "0" ]; then
-	/usr/sbin/poweroff -d -f -i
+	/bin/poweroff -d -f -i
 else
-	/usr/sbin/reboot -d -f -i
+	/bin/reboot -d -f -i
 fi