Minor changes to network scripts to bring inline with my current patch series

This commit is contained in:
Victor Lowther 2009-03-06 17:04:05 -06:00
parent 601a5333d2
commit 02d7fdcab4
3 changed files with 4 additions and 9 deletions

View File

@ -2,8 +2,6 @@
# very simple dhclient-script. All it cares about is bringing the interface
# up, and it does not even try to do anything else.
PATH="/sbin:$PATH"
case $reason in
PREINIT) ip link set "$interface" up ;;
BOUND) ipopts="$new_ip_address"

View File

@ -1,7 +1,7 @@
#!/bin/sh
PATH="/sbin:$PATH"
# bail immediatly if the interface is already up
[ -f "/net.$1.up" ] && exit 0
# loopback is always handled the same way
[ "$1" = "lo" ] && {
@ -33,4 +33,4 @@ for p in $(cat /proc/cmdline); do
) ;;
*) continue;;
esac
done
done

View File

@ -1,11 +1,8 @@
#!/bin/sh
PATH="/sbin:$PATH"
for i in /net.*.dhcp; do
dev=${i#net.}; dev=${i%.dhcp}
[ -f "/net.$dev.up" ] && continue
dhclient -1 -q $dev &
done
wait