summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 f7cd1c8..9ae3787 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -2544,7 +2544,8 @@ function find_dhclient_process($interface) {
function find_dhcp6c_process($interface) {
if ($interface)
- $pid = `/bin/pgrep -axf "dhcp6c" |grep "{$interface}"`;
+ $pid = `/bin/ps auxw|grep "dhcp6c" |grep
+"{$interface}"|awk '{print $2}'`;
else
$pid = 0;
OpenPOWER on IntegriCloud