# 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"
#!/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" ] && {
) ;;
*) continue;;
esac
-done
+done
\ No newline at end of file
#!/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
-
+
\ No newline at end of file