Subversion Repositories configs

Rev

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

Rev 97 Rev 108
Line 72... Line 72...
72
	esac
72
	esac
73
 
73
 
74
	vlaninterfaces=""
74
	vlaninterfaces=""
75
	xdslinterfaces=""
75
	xdslinterfaces=""
76
	bridgeinterfaces=""
76
	bridgeinterfaces=""
-
 
77
	vpninterfaces=""
77
 
78
 
78
	# bring up all other interfaces configured to come up at boot time
79
	# bring up all other interfaces configured to come up at boot time
79
	for i in $interfaces; do
80
	for i in $interfaces; do
80
		unset DEVICE TYPE SLAVE
81
		unset DEVICE TYPE SLAVE
81
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
82
		eval $(LANG=C fgrep "DEVICE=" ifcfg-$i)
Line 121... Line 122...
121
		action $"Bringing up interface $i: " ./ifup $i boot
122
		action $"Bringing up interface $i: " ./ifup $i boot
122
		[ $? -ne 0 ] && rc=1
123
		[ $? -ne 0 ] && rc=1
123
	done
124
	done
124
	
125
	
125
	# Bring up xDSL and VPN interfaces
126
	# Bring up xDSL and VPN interfaces
126
	for i in $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
127
	for i in $vpninterfaces $vlaninterfaces $bridgeinterfaces $xdslinterfaces ; do
127
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
128
            if ! LANG=C egrep -L "^ONBOOT=['\"]?[Nn][Oo]['\"]?" ifcfg-$i >/dev/null 2>&1 ; then
128
		# If we're in confirmation mode, get user confirmation.
129
		# If we're in confirmation mode, get user confirmation.
129
		if [ -f /var/run/confirm ]; then
130
		if [ -f /var/run/confirm ]; then
130
			confirm $i
131
			confirm $i
131
			test $? = 1 && continue
132
			test $? = 1 && continue
Line 179... Line 180...
179
	fi
180
	fi
180
	
181
	
181
	vlaninterfaces=""
182
	vlaninterfaces=""
182
	xdslinterfaces=""
183
	xdslinterfaces=""
183
	bridgeinterfaces=""
184
	bridgeinterfaces=""
-
 
185
	vpninterfaces=""
184
	remaining=""
186
	remaining=""
185
	rc=0
187
	rc=0
186
 
188
 
187
	# get list of bonding, vpn, and xdsl interfaces
189
	# get list of bonding, vpn, and xdsl interfaces
188
	for i in $interfaces; do
190
	for i in $interfaces; do
Line 211... Line 213...
211
			continue
213
			continue
212
		fi
214
		fi
213
		remaining="$remaining $i"
215
		remaining="$remaining $i"
214
	done
216
	done
215
	
217
	
216
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $remaining; do
218
	for i in $xdslinterfaces $bridgeinterfaces $vlaninterfaces $vpninterfaces $remaining; do
217
		(. ./ifcfg-$i
219
		(. ./ifcfg-$i
218
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi
220
		if [ -z "$DEVICE" ] ; then DEVICE="$i"; fi
219
 
221
 
220
		if ! check_device_down $DEVICE; then
222
		if ! check_device_down $DEVICE; then
221
		   action $"Shutting down interface $i: " ./ifdown $i boot
223
		   action $"Shutting down interface $i: " ./ifdown $i boot