View | Details | Raw Unified | Return to bug 11786
Collapse All | Expand All

(-)a/etc/net/scripts/create-eth (-1 / +19 lines)
Lines 8-13 if [ -n "$MODULE" ]; then Link Here
8
	for oneword in $MODULE; do
8
	for oneword in $MODULE; do
9
		$MODPROBE $oneword
9
		$MODPROBE $oneword
10
	done
10
	done
11
else
11
fi
12
13
if $IP li sh dev $NAME 2>/dev/null; then
14
	# iface $NAME at least exists
12
	$IP link set dev $NAME down
15
	$IP link set dev $NAME down
16
	exit 0
13
fi
17
fi
18
19
# nope, try to guess from iftab
20
if profiled_filename IFTAB_FILE "$IFTAB"; then
21
	while read junk junk junk junk from junk to; do
22
		if [ "$NAME" = "${to%.*}" ]; then
23
			# iface will be renamed to $NAME later
24
			$IP link set dev $from down
25
			exit 0
26
		fi
27
	done <<< "$($IFRENAME -c "$IFTAB_FILE" -D 2>&1)"
28
fi
29
30
# still nothing, bail out
31
exit 1

Return to bug 11786