slitaz-arm rev 16
let use mdev to create devices
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 29 23:51:57 2012 +0000 (2012-05-29) |
parents | 68f82e46d19b |
children | 4dcfb253c8f7 |
files | rootfs/etc/init.d/rcS rootfs/etc/init.d/shutdown.sh sat |
line diff
1.1 --- a/rootfs/etc/init.d/rcS Tue May 29 16:32:26 2012 +0000 1.2 +++ b/rootfs/etc/init.d/rcS Tue May 29 23:51:57 2012 +0000 1.3 @@ -12,10 +12,8 @@ 1.4 . /lib/libtaz.sh 1.5 . /etc/rcS.conf 1.6 1.7 -# Set default paths 1.8 -PATH=/bin:/sbin:/usr/bin:/usr/sbin 1.9 -LD_LIBRARY_PATH=/usr/lib:/lib 1.10 -export PATH LD_LIBRARY_PATH 1.11 +# Set default path 1.12 +export PATH=/bin:/sbin:/usr/bin:/usr/sbin 1.13 1.14 echo $(colorize 34 "Processing:") "/etc/init.d/rcS" 1.15 1.16 @@ -24,14 +22,16 @@ 1.17 mount proc 1.18 status 1.19 1.20 -# Populate /dev 1.21 -#mdev -s 1.22 -#echo "/sbin/mdev" > /proc/sys/kernel/hotplug 1.23 - 1.24 # Mount all from: /etc/fstab 1.25 echo "Mounting filesystems in fstab..." 1.26 mount -a 1.27 1.28 +# Populate /dev 1.29 +echo -n "Creating devives nodes..." 1.30 +mdev -s 1.31 +echo "/sbin/mdev" > /proc/sys/kernel/hotplug 1.32 +status 1.33 + 1.34 # Be quiet 1.35 echo "0 0 0 0" > /proc/sys/kernel/printk 1.36
2.1 --- a/rootfs/etc/init.d/shutdown.sh Tue May 29 16:32:26 2012 +0000 2.2 +++ b/rootfs/etc/init.d/shutdown.sh Tue May 29 23:51:57 2012 +0000 2.3 @@ -8,6 +8,7 @@ 2.4 . /etc/rcS.conf 2.5 2.6 # Messages 2.7 +newline 2.8 boldify "System is going down for reboot or halt..." 2.9 colorize 32 $(uptime) 2.10
3.1 --- a/sat Tue May 29 16:32:26 2012 +0000 3.2 +++ b/sat Tue May 29 23:51:57 2012 +0000 3.3 @@ -103,11 +103,6 @@ 3.4 # Move kernel outside the distro 3.5 cd $work && mv -f $distro/boot/linux-* linux-arm 3.6 3.7 - # Fixes: udev not yet cross-compiled 3.8 - echo -n "Applying SliTaz ARM fixes..." 3.9 - sed -i s"/UDEV=.*/UDEV=\"\"/" $distro/etc/rcS.conf 3.10 - status 3.11 - 3.12 # SLITAZ_ARCH 3.13 echo -n "Setting SliTaz arch to: arm" 3.14 sed -i s"/SLITAZ_ARCH=.*/SLITAZ_ARCH=\"arm\"/" \