# HG changeset patch # User Christophe Lincoln # Date 1240757065 -7200 # Node ID c2bc39dc798599863904c717e82a73b49638202e # Parent 2f1bca639842b2becd31e280e1a7d5063c375233 bootopts.sh: Clean and upate comments diff -r 2f1bca639842 -r c2bc39dc7985 etc/init.d/bootopts.sh --- a/etc/init.d/bootopts.sh Sun Apr 26 16:31:46 2009 +0200 +++ b/etc/init.d/bootopts.sh Sun Apr 26 16:44:25 2009 +0200 @@ -29,7 +29,6 @@ } # Mount /home and check for user hacker home dir. -# mount_home() { echo "Home has been specified to $DEVICE..." @@ -53,7 +52,7 @@ else echo "Unable to find $DEVICE... " fi - # Move all hacker dir if needed. + # Move all user dir if needed. if [ ! -d "/home/$USER" ] ; then mv /tmp/$USER-files /home/$USER chown -R $USER.$USER /home/$USER @@ -64,6 +63,8 @@ # Default user account without password (uid=1000). In live mode the option # user=name can be used, but user must be add before home= to have home dir. +# This option is not handled by a loop and case like other and without +# effect on a installed system. if ! grep -q "1000:1000" /etc/passwd; then if grep -q "user=" /proc/cmdline; then USER=`cat /proc/cmdline | sed 's/.*user=\([^ ]*\).*/\1/'` @@ -104,6 +105,7 @@ # Parse /proc/cmdline for boot options. echo "Parsing kernel cmdline for SliTaz live options... " + for opt in `cat /proc/cmdline` do case $opt in @@ -136,10 +138,11 @@ status ;; laptop) # Laptop option to load ac and battery Kernel modules. - echo "Loading laptop modules: ac, battery, yenta_socket..." - modprobe ac - modprobe battery - modprobe yenta_socket ;; + echo "Loading laptop modules: ac, battery, fan, yenta_socket..." + for mod in ac battery fan yenta_socket + do + modprobe $mod + done ;; mount) # Mount all ext3 partitions found (opt: mount). # Get the list of partitions.