# HG changeset patch # User Christophe Lincoln # Date 1203728194 -3600 # Node ID 1e2fdd797456fdede4c91fc27aca90b97d4b4916 # Parent f34a92a12c881384ae17999605cb8fc739b52c3f Add option: laptop (load modules: ac battery) diff -r f34a92a12c88 -r 1e2fdd797456 etc/init.d/bootopts.sh --- a/etc/init.d/bootopts.sh Sat Feb 23 01:42:47 2008 +0100 +++ b/etc/init.d/bootopts.sh Sat Feb 23 01:56:34 2008 +0100 @@ -93,3 +93,13 @@ fi fi +# Laptop option to load ac and battery Kernel modules. +if grep -q "laptop" /proc/cmdline; then + echo -n "Laptop modules: ac battery..." + . /etc/rcS.conf + sed -i s/"LOAD_MODULES=\"$LOAD_MODULES\""/"LOAD_MODULES=\"$LOAD_MODULES ac battery\""/\ + /etc/rcS.conf + status + modprobe ac + modprobe battery +fi diff -r f34a92a12c88 -r 1e2fdd797456 etc/rcS.conf --- a/etc/rcS.conf Sat Feb 23 01:42:47 2008 +0100 +++ b/etc/rcS.conf Sat Feb 23 01:56:34 2008 +0100 @@ -33,7 +33,7 @@ # Daemons to start at boot time. SliTaz provide only a few daemons, firewall, # Web server (lighttpd), SSH server (dropbear) and rsyncd, so boot order is # not realy important. -RUN_DAEMONS="firewall lighttpd" +RUN_DAEMONS="slim firewall lighttpd" # Pre login bold message. MESSAGE="Welcome to your box."