diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-02-19 03:41:10 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-02-19 03:41:10 +0000 |
commit | 89fcabc4af4c425e0477bec459fac31b185fb420 (patch) | |
tree | 635d59cdddda2543bd2322d812a8419f459f2030 /etc | |
parent | dc6f894212ac939b8f570c3fe61bc4ff53926da3 (diff) | |
download | pfsense-89fcabc4af4c425e0477bec459fac31b185fb420.zip pfsense-89fcabc4af4c425e0477bec459fac31b185fb420.tar.gz |
Ensure that we returned a real interface and squash reloading
errors.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/interfaces.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 81d8708..2560869 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -868,7 +868,8 @@ function kill_wpasupplicant($interface) { function find_dhclient_process($interface) { if(filter_translate_type_to_real_interface($interface) <> "") $realinterface = filter_translate_type_to_real_interface($interface); - $pid = `ps awwwux | grep dhclient | grep -v grep | grep {$realinterface} | awk '{ print \$2 }'`; + if($realinterface) + $pid = `ps awwwux | grep dhclient | grep -v grep | grep {$realinterface} | awk '{ print \$2 }'`; return $pid; } |