Subversion Repositories livecd

Rev

Rev 7 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7 Rev 9
Line 22... Line 22...
22
 
22
 
23
 
23
 
24
### put wireless kernel module on blacklist, if boot over NFS
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 
25
#   we don't need to load wireless modules, if we boot over network 
26
if [ $NFSROOT ]; then
26
if [ $NFSROOT ]; then
27
    [ -e /etc/hotplug/blacklist ] && BLACKLIST_FILE=/etc/hotplug/blacklist
-
 
28
    [ -e /etc/modprobe.d/blacklist ] && BLACKLIST_FILE=/etc/modprobe.d/blacklist
-
 
29
 
-
 
30
    echo "Disable probing for wireless modules on diskless client"
27
    echo "Disable probing for wireless modules on diskless client"
31
    cp -a ${BLACKLIST_FILE} ${BLACKLIST_FILE}.backup
28
    cp -a /etc/hotplug/blacklist /etc/hotplug/blacklist.backup
32
    echo >> ${BLACKLIST_FILE}
29
    echo >> /etc/hotplug/blacklist
33
    echo "# Disable wireless modules on diskless client" >> ${BLACKLIST_FILE}
30
    echo "# Disable wireless modules on diskless client" >> /etc/hotplug/blacklist
34
 
31
 
35
    # for SL4
-
 
36
    if [ -e /etc/hotplug/blacklist ]; then
-
 
37
	find /lib/modules/$( uname -r )/kernel/drivers/net/wireless -type f | grep -v "_" | while read module; do 
32
    find /lib/modules/$( uname -r )/kernel/drivers/net/wireless -type f | grep -v "_" | while read module; do 
38
	    basename $module | cut -d"." -f 1
33
	 basename $module | cut -d"." -f 1
39
	done >> ${BLACKLIST_FILE}
-
 
40
    fi
-
 
41
 
-
 
42
    # for SL5
-
 
43
    if [ -e /etc/modprobe.d/blacklist ]; then
34
    done >> /etc/hotplug/blacklist
44
	find /lib/modules/$( uname -r )/kernel/drivers/net/wireless -type f | grep -v "_" | while read module; do 
-
 
45
	    echo -n "blacklist "; basename $module | cut -d"." -f 1
-
 
46
	done >> ${BLACKLIST_FILE}
-
 
47
    fi
-
 
48
fi
35
fi
49
 
36