Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed
#!/bin/bash## Noninteractive HW detection and configuration## Urs Beyerle, PSI#### -----------------------------------------------------------### definitions### -----------------------------------------------------------# dir of mounted /$MOUNTDIR/liveMOUNTDIR=livecd# source functions. /$MOUNTDIR/live/liblinuxlive. /etc/init.d/functions### -----------------------------------------------------------### Get boot parameters### -----------------------------------------------------------# do not start networkNONET=$( cmdline_parameter nonet )### -----------------------------------------------------------### Main### -----------------------------------------------------------# run kudzu in quiet modeaction $"Hardware auto-detection, please wait... " /usr/sbin/kudzu -q# disable start network devices, if NONET is definedif [ $NONET ]; thenfor iface in eth0 eth1 eth2 eth3; dofor file in networking/profiles/default/ifcfg \networking/devices/ifcfg \network-scripts/ifcfg; doif [ -e /etc/sysconfig/${file}-${iface} ]; thensed -i "s/ONBOOT=.*/ONBOOT=no/" /etc/sysconfig/${file}-${iface}fidonedonefi