Rev 1 | Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed
#!/bin/bash## Fix things during bootup - run very first# Executed at the begining of /etc/rc.d/rc.sysinit## Urs Beyerle, PSI#### definitions# dir of mounted /$MOUNTDIR/liveMOUNTDIR=livecd# source functions. /$MOUNTDIR/live/liblinuxlive. /etc/init.d/functions### get boot parameters# root on NFS?NFSROOT=$( cmdline_value nfsroot )### create /srv and /selinuxmkdir -p /srvmkdir -p /selinux### put wireless kernel module on blacklist, if boot over NFS# we don't need to load wireless modules, if we boot over networkif [ $NFSROOT ]; then[ -e /etc/hotplug/blacklist ] && BLACKLIST_FILE=/etc/hotplug/blacklist[ -e /etc/modprobe.d/blacklist ] && BLACKLIST_FILE=/etc/modprobe.d/blacklistecho "Disable probing for wireless modules on diskless client"cp -a ${BLACKLIST_FILE} ${BLACKLIST_FILE}.backupecho >> ${BLACKLIST_FILE}echo "# Disable wireless modules on diskless client" >> ${BLACKLIST_FILE}# for SL4if [ -e /etc/hotplug/blacklist ]; thenfind /lib/modules/$( uname -r )/kernel/drivers/net/wireless -type f | grep -v "_" | while read module; dobasename $module | cut -d"." -f 1done >> ${BLACKLIST_FILE}fi# for SL5if [ -e /etc/modprobe.d/blacklist ]; thenfind /lib/modules/$( uname -r )/kernel/drivers/net/wireless -type f | grep -v "_" | while read module; doecho -n "blacklist "; basename $module | cut -d"." -f 1done >> ${BLACKLIST_FILE}fifi