do not run dhclient, if no net device found

master
Harald Hoyer 2009-05-15 12:43:03 +02:00
parent f24e31c26f
commit e7b6ed1379
1 changed files with 2 additions and 1 deletions

View File

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