slitaz-boot-scripts rev 356

Fix shutdown log path and fallback to mdev if no udev
author Christophe Lincoln <pankso@slitaz.org>
date Fri Mar 14 00:14:16 2014 +0100 (2014-03-14)
parents a77691f15e10
children e147902153c1
files etc/init.d/rc.shutdown etc/init.d/rcS
line diff
     1.1 --- a/etc/init.d/rc.shutdown	Sun Mar 09 05:09:09 2014 +0000
     1.2 +++ b/etc/init.d/rc.shutdown	Fri Mar 14 00:14:16 2014 +0100
     1.3 @@ -5,7 +5,7 @@
     1.4  . /etc/init.d/rc.functions
     1.5  . /etc/rcS.conf
     1.6  
     1.7 -log=/var/lib/shutdown.log
     1.8 +log=/var/log/slitaz/shutdown.log
     1.9  
    1.10  # Clear and quiet shutdown
    1.11  clear && echo "System is going down for reboot or halt." > $log
     2.1 --- a/etc/init.d/rcS	Sun Mar 09 05:09:09 2014 +0000
     2.2 +++ b/etc/init.d/rcS	Fri Mar 14 00:14:16 2014 +0100
     2.3 @@ -36,10 +36,7 @@
     2.4  	udevadm settle --timeout=120
     2.5  	# Disable hotplug helper since udevd listen to netlink
     2.6  	echo "" > /proc/sys/kernel/hotplug
     2.7 -fi
     2.8 -
     2.9 -# Busybox mdev is an udev alternative
    2.10 -if [ "$UDEV" == "mdev" ]; then
    2.11 +else
    2.12  	echo -n "Executing mdev -s to populate /dev..."
    2.13  	mdev -s && echo "mdev" > /proc/sys/kernel/hotplug
    2.14  	status