Do not run dhclient if the interface is already up.

master
Victor Lowther 2009-02-25 18:42:14 -08:00 committed by Harald Hoyer
parent 5f3e2dd2f3
commit 58a797d5f9
1 changed files with 1 additions and 0 deletions

View File

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