summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-02-19 03:41:10 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-02-19 03:41:10 +0000
commit89fcabc4af4c425e0477bec459fac31b185fb420 (patch)
tree635d59cdddda2543bd2322d812a8419f459f2030 /etc
parentdc6f894212ac939b8f570c3fe61bc4ff53926da3 (diff)
downloadpfsense-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.inc3
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;
}
OpenPOWER on IntegriCloud