slitaz-boot-scripts diff etc/init.d/bootopts.sh @ rev 153
Improve and tidy scripts, start tazhw from rcS and start network.sh earlier
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 21 01:46:21 2009 +0200 (2009-04-21) |
parents | deb719ede74f |
children | 965cc9d8722a |
line diff
1.1 --- a/etc/init.d/bootopts.sh Mon Feb 16 17:26:41 2009 +0000 1.2 +++ b/etc/init.d/bootopts.sh Tue Apr 21 01:46:21 2009 +0200 1.3 @@ -1,12 +1,14 @@ 1.4 #!/bin/sh 1.5 # /etc/init.d/bootopts.sh - SliTaz boot options from the cmdline. 1.6 # 1.7 +# Earlier boot options are in rcS: config= and modprobe= 1.8 +# 1.9 . /etc/init.d/rc.functions 1.10 1.11 # Update fstab for swapon/swapoff 1.12 add_swap_in_fstab() 1.13 { 1.14 - grep -q "$1 " /etc/fstab || cat >> /etc/fstab <<EOT 1.15 + grep -q "$1 " /etc/fstab || cat >> /etc/fstab <<EOT 1.16 $1 swap swap default 0 0 1.17 EOT 1.18 } 1.19 @@ -81,6 +83,11 @@ 1.20 1.21 echo "Parsing kernel cmdline for SliTaz live options... " 1.22 1.23 +# eject: Eject cdrom 1.24 +if grep -q -w "eject" /proc/cmdline; then 1.25 + eject /dev/cdrom 1.26 +fi 1.27 + 1.28 # user=name: Default user account without password (uid=1000). 1.29 # 1.30 if ! grep -q "1000:1000" /etc/passwd; then