Subversion Repositories livecd

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 beyerle@PS 1
#!/bin/bash
2
#
3
# Fix things during bootup - run very first 
4
# Executed at the begining of /etc/rc.d/rc.sysinit
5
#
6
# Urs Beyerle, PSI
7
#
8
 
9
### definitions
10
 
11
# dir of mounted /$MOUNTDIR/live
12
MOUNTDIR=livecd
13
 
14
# source functions
15
. /$MOUNTDIR/live/liblinuxlive
16
. /etc/init.d/functions
17
 
18
### get boot parameters
19
 
20
# root on NFS?
21
NFSROOT=$( cmdline_value nfsroot )
22
 
23
 
24
### put wireless kernel module on blacklist, if boot over NFS
25
#   we don't need to load wireless modules, if we boot over network 
26
if [ $NFSROOT ]; then
27
    echo "Disable probing for wireless modules on diskless client"
9 beyerle@PS 28
    cp -a /etc/hotplug/blacklist /etc/hotplug/blacklist.backup
29
    echo >> /etc/hotplug/blacklist
30
    echo "# Disable wireless modules on diskless client" >> /etc/hotplug/blacklist
1 beyerle@PS 31
 
9 beyerle@PS 32
    find /lib/modules/$( uname -r )/kernel/drivers/net/wireless -type f | grep -v "_" | while read module; do 
33
	 basename $module | cut -d"." -f 1
34
    done >> /etc/hotplug/blacklist
1 beyerle@PS 35
fi
36