slitaz-boot-scripts diff etc/init.d/bootopts.sh @ rev 241

clean-up code: removing trailing spaces
author Antoine Bodin <gokhlayeh@slitaz.org>
date Tue Mar 15 06:09:03 2011 +0100 (2011-03-15)
parents 06704c29c449
children 38e84de6ec26
line diff
     1.1 --- a/etc/init.d/bootopts.sh	Sun Mar 06 16:21:42 2011 +0000
     1.2 +++ b/etc/init.d/bootopts.sh	Tue Mar 15 06:09:03 2011 +0100
     1.3 @@ -5,7 +5,7 @@
     1.4  #
     1.5  . /etc/init.d/rc.functions
     1.6  
     1.7 -# Update fstab for swapon/swapoff 
     1.8 +# Update fstab for swapon/swapoff
     1.9  add_swap_in_fstab()
    1.10  {
    1.11  	grep -q "$1	" /etc/fstab || cat >> /etc/fstab <<EOT
    1.12 @@ -83,7 +83,7 @@
    1.13  			echo "$KEYMAP" > /etc/keymap.conf
    1.14  			status ;;
    1.15  		home=*)
    1.16 -			# Check for a specified home partition (home=*) and check for 
    1.17 +			# Check for a specified home partition (home=*) and check for
    1.18  			# user home dir. Note: home=usb is a shorter and easier way to
    1.19  			# have home=/dev/sda1.
    1.20  			DEVICE=${opt#home=}
    1.21 @@ -129,8 +129,8 @@
    1.22  			else
    1.23  				rm -rf /tmp/$USER-files
    1.24  			fi
    1.25 -			# Install all packages in /home/boot/packages. In live CD and 
    1.26 -			# USB mode the option home= mounts the device on /home, so we 
    1.27 +			# Install all packages in /home/boot/packages. In live CD and
    1.28 +			# USB mode the option home= mounts the device on /home, so we
    1.29  			# already have a boot directory with the Kernel and rootfs.
    1.30  			if [ -d "/home/boot/packages" ]; then
    1.31  				for pkg in /home/boot/packages/*.tazpkg
    1.32 @@ -150,7 +150,7 @@
    1.33  			do
    1.34  				modprobe $mod
    1.35  			done
    1.36 -			grep -qs batt /etc/lxpanel/default/panels/panel || 
    1.37 +			grep -qs batt /etc/lxpanel/default/panels/panel ||
    1.38  			sed -i 's/= cpu/= batt\n}\n\nPlugin {\n    type = cpu/' \
    1.39  				/etc/lxpanel/default/panels/panel 2> /dev/null
    1.40  			# Enable Kernel Laptop mode.
    1.41 @@ -171,7 +171,7 @@
    1.42  				fi
    1.43  			done ;;
    1.44  		mount-packages)
    1.45 -			# Mount and install packages-XXX.iso (useful without Internet 
    1.46 +			# Mount and install packages-XXX.iso (useful without Internet
    1.47  			# connection).
    1.48  			PKGSIGN="LABEL=\"packages-$(cat /etc/slitaz-release)\" TYPE=\"iso9660\""
    1.49  			PKGDEV=$(blkid | grep "$PKGSIGN" | cut -d: -f1)