# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local

# set XF86Config to point to the default (usually the vesa version)

if [ -x /sbin/xselect ]
    /sbin/initlog -n "$0" -s "setting x default driver"
    /sbin/initlog -c "/sbin/xselect default"

# load sound module so cd player and modem sound will work w/out
# loading volume control (which loads sound)

/sbin/initlog -n "$0" -s "loading sound"
/sbin/initlog -c "/sbin/modprobe i810_audio"

# unload ndiswrapper - so the radio turns off - network startup
# loads it even though wlan0 isn't started on boot - to preserve
# device ordering - i guess - and that turns on the radio

if awk '{print $1}' /proc/modules | grep -q ndiswrapper
    /sbin/initlog -n "$0" -s " unloading ndiswrapper"
    /sbin/initlog -c "/sbin/rmmod ndiswrapper"