summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorChris Buechler <cmb@cmb-macbook-pro.local>2009-03-09 22:14:25 -0400
committerChris Buechler <cmb@cmb-macbook-pro.local>2009-03-09 22:14:25 -0400
commitf2a5b5e467caa99c78939eea236f0036031a499a (patch)
tree9a6b3e9c0d300dcfa4624d15e0e24233fe753d89 /etc/inc/interfaces.inc
parentac33db20c510fcdd8b810b0fed0aa8e1867beaf5 (diff)
downloadpfsense-f2a5b5e467caa99c78939eea236f0036031a499a.zip
pfsense-f2a5b5e467caa99c78939eea236f0036031a499a.tar.gz
Fix display of DHCP status on Status -> Interfaces
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index f825bdd..9ceb592 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -1244,9 +1244,8 @@ function kill_wpasupplicant($interface) {
}
function find_dhclient_process($interface) {
- $realinterface = get_real_interface($interface);
- if($realinterface)
- $pid = `ps awwwux | grep dhclient | grep -v grep | grep {$realinterface} | awk '{ print \$2 }'`;
+ if($interface)
+ $pid = `ps awwwux | grep dhclient | grep -v grep | grep {$interface} | awk '{ print \$2 }'`;
return $pid;
}
OpenPOWER on IntegriCloud