Subversion Repositories livecd

Rev

Rev 72 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 72 Rev 73
Line 42... Line 42...
42
NONET=$( cmdline_parameter nonet )
42
NONET=$( cmdline_parameter nonet )
43
 
43
 
44
# Are PXE/TFTP and NFS Server the same host ? not uesed any more
44
# Are PXE/TFTP and NFS Server the same host ? not uesed any more
45
ONEMASTER=$( cmdline_parameter onemaster )
45
ONEMASTER=$( cmdline_parameter onemaster )
46
 
46
 
47
# static IP
-
 
48
IPADDR=$( cmdline_value ip )
-
 
49
 
-
 
50
# gateway
-
 
51
GATEWAY=$( cmdline_value gw )
-
 
52
 
-
 
53
# netmask
-
 
54
NETMASK=$( cmdline_value netmask )
-
 
55
 
-
 
56
# fast booting ?
47
# fast booting ?
57
FASTBOOT=$( cmdline_parameter fastboot )
48
FASTBOOT=$( cmdline_parameter fastboot )
58
 
49
 
59
# if run=rdesktop, we do fast boot
50
# if run=rdesktop, we do fast boot
60
if [ "$( cmdline_value run )" = "rdesktop" ]; then
51
if [ "$( cmdline_value run )" = "rdesktop" ]; then
Line 190... Line 181...
190
### set afs cell, if given by boot parameter
181
### set afs cell, if given by boot parameter
191
if [ $CELL ]; then
182
if [ $CELL ]; then
192
    echo $CELL > /usr/vice/etc/ThisCell
183
    echo $CELL > /usr/vice/etc/ThisCell
193
fi
184
fi
194
 
185
 
195
### do not activate network during bootup, if "nonet"
-
 
196
if [ $NONET ]; then
-
 
197
    for iface in eth0 eth1 eth2 eth3; do
-
 
198
	for file in networking/profiles/default/ifcfg \
-
 
199
	            networking/devices/ifcfg \
-
 
200
                    network-scripts/ifcfg; do
-
 
201
	  if [ -e /etc/sysconfig/${file}-${iface} ]; then
-
 
202
	      sed -i "s/ONBOOT=.*/ONBOOT=no/" /etc/sysconfig/${file}-${iface}
-
 
203
	  fi
-
 
204
	done
-
 
205
    done
-
 
206
fi
-
 
207
 
-
 
208
### define static IP and gateway, netmask
-
 
209
if [ $IPADDR ]; then    
-
 
210
    if [ ! $GATEWAY ]; then
-
 
211
	# default gatway x.y.z.1
-
 
212
	GATEWAY=$( echo $IPADDR | awk -F"." '{ print $1"."$2"."$3".1" }' )
-
 
213
	if [ ! $NETMASK ]; then
-
 
214
	    NETMASK=255.255.255.0
-
 
215
	fi
-
 
216
    fi
-
 
217
    # create config files for eth0
-
 
218
    for iface in eth0; do
-
 
219
	for file in networking/profiles/default/ifcfg \
-
 
220
	            networking/devices/ifcfg \
-
 
221
	            network-scripts/ifcfg; do
-
 
222
	  sed -i "s/BOOTPROTO=.*/BOOTPROTO=none/" /etc/sysconfig/${file}-${iface}
-
 
223
	  echo "IPADDR=$IPADDR" > /etc/sysconfig/${file}-${iface}
-
 
224
	  echo "NETMASK=$NETMASK" > /etc/sysconfig/${file}-${iface}
-
 
225
	  echo "GATEWAY=$GATEWAY" > /etc/sysconfig/${file}-${iface}
-
 
226
	done
-
 
227
    done
-
 
228
fi
-
 
229
 
-
 
230
### activate ipw3945d deamon, if we have Intel IPW3945 WLAN 
-
 
231
lspci | grep -q Intel.*3945ABG
-
 
232
[ "$?" = "0" ] && chkconfig ipw3945d on 2>/dev/null
-
 
233
 
-