slitaz-boot-scripts diff etc/init.d/rcS @ rev 310
/etc/init.d/rcS, /init: use /run
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 02 14:31:16 2012 +0200 (2012-06-02) |
parents | 6b2d11ed8718 |
children | 1940df4ac550 |
line diff
1.1 --- a/etc/init.d/rcS Sat Jun 02 14:12:23 2012 +0200 1.2 +++ b/etc/init.d/rcS Sat Jun 02 14:31:16 2012 +0200 1.3 @@ -24,11 +24,6 @@ 1.4 echo -n "Mounting proc filesystem on /proc" 1.5 mount proc && status 1.6 1.7 -# Mount /run as tmpfs runtime data are not written to disk 1.8 -echo -n "Mounting tmpfs filesystem on: /run" 1.9 -mount -t tmpfs tmpfs /run 1.10 -status 1.11 - 1.12 # Trigger Udev and handle hotplug events 1.13 if [ "$UDEV" == "yes" ]; then 1.14 echo -n "Mounting devtmpfs filesystem on: /dev" 1.15 @@ -210,17 +205,17 @@ 1.16 1.17 *) 1.18 # --> readonly --> readwrite 1.19 - if [ ! -s /tmp/boot.log ]; then 1.20 - mount -t tmpfs tmpfs /tmp 1.21 + if [ ! -s /run/boot.log ]; then 1.22 + # Mount /run as tmpfs runtime data are not written to disk 1.23 + mount -t tmpfs tmpfs /run 1.24 fi 1.25 - /etc/init.d/rcS readonly 2>&1 | tee -a /tmp/boot.log 1.26 + /etc/init.d/rcS readonly 2>&1 | tee -a /run/boot.log 1.27 # Logrotate boot.log 1.28 last=.9 1.29 for i in .8 .7 .6 .5 .4 .3 .2 .1 .0 '' ; do 1.30 mv -f /var/log/boot.log${i} /var/log/boot.log${last} 2>/dev/null 1.31 last=$i 1.32 done 1.33 - mv -f /tmp/boot.log /var/log/boot.log 1.34 - umount /tmp 1.35 + mv -f /run/boot.log /var/log/boot.log 1.36 /etc/init.d/rcS readwrite 2>&1 | tee -a /var/log/boot.log ;; 1.37 esac