Browse Source

Do not run dhclient if the interface is already up.

master
Victor Lowther 16 years ago committed by Harald Hoyer
parent
commit
58a797d5f9
  1. 1
      hooks/run-dhclient.sh

1
hooks/run-dhclient.sh

@ -1,6 +1,7 @@ @@ -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

Loading…
Cancel
Save