diff options
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r-- | etc/inc/interfaces.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index c627ac0..231163a 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1738,8 +1738,11 @@ function kill_wpasupplicant($interface) { } function find_dhclient_process($interface) { - if($interface) + if($interface) { $pid = `ps awwwux | grep dhclient | grep -v grep | grep {$interface} | awk '{ print \$2 }'`; + $pid = explode("\n", $pid); + $pid = $pid[0]; + } return $pid; } |