Subversion Repositories livecd

Rev

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

Rev 7 Rev 9
Line 78... Line 78...
78
    chkconfig rpcidmapd off
78
    chkconfig rpcidmapd off
79
fi
79
fi
80
 
80
 
81
### restore blacklist (modified in runveryfirst)
81
### restore blacklist (modified in runveryfirst)
82
if [ $NFSROOT ]; then
82
if [ $NFSROOT ]; then
83
    [ -e /etc/hotplug/blacklist ] && BLACKLIST_FILE=/etc/hotplug/blacklist
83
    cp /etc/hotplug/blacklist /etc/hotplug/blacklist.runveryfirst
84
    [ -e /etc/modprobe.d/blacklist ] && BLACKLIST_FILE=/etc/modprobe.d/blacklist
84
    cp -fa /etc/hotplug/blacklist.backup /etc/hotplug/blacklist
85
    mv -f ${BLACKLIST_FILE}.backup ${BLACKLIST_FILE}
-
 
86
fi
85
fi
87
 
86
 
88
### get resolv.conf
87
### get resolv.conf
89
# if we have the LiveCD mounted over NFS
88
# if we have the LiveCD mounted over NFS
90
if [ $NFSROOT ]; then
89
if [ $NFSROOT ]; then
Line 190... Line 189...
190
### set afs cell, if given by boot parameter
189
### set afs cell, if given by boot parameter
191
if [ $CELL ]; then
190
if [ $CELL ]; then
192
    echo $CELL > /usr/vice/etc/ThisCell
191
    echo $CELL > /usr/vice/etc/ThisCell
193
fi
192
fi
194
 
193
 
195
### do not activate network during bootup, if "nonet"
194
### do not activate network eth0/1 during bootup, if "nonet"
196
if [ $NONET ]; then
195
if [ $NONET ]; then
197
    for iface in eth0 eth1 eth2 eth3; do
196
    for iface in eth0 eth1; do
198
	for file in networking/profiles/default/ifcfg \
197
	for file in networking/profiles/default/ifcfg \
199
	            networking/devices/ifcfg \
198
	            networking/devices/ifcfg \
200
                    network-scripts/ifcfg; do
199
                    network-scripts/ifcfg; do
201
	  if [ -e /etc/sysconfig/${file}-${iface} ]; then
-
 
202
	      sed -i "s/ONBOOT=.*/ONBOOT=no/" /etc/sysconfig/${file}-${iface}
200
	  sed -i "s/ONBOOT=.*/ONBOOT=no/" /etc/sysconfig/${file}-${iface}
203
	  fi
-
 
204
	done
201
	done
205
    done
202
    done
206
fi
203
fi
207
 
204
 
208
### define static IP and gateway, netmask
205
### define static IP and gateway, netmask