Revision 9eafb7e2
Added by Seth Mos about 14 years ago
etc/inc/interfaces.inc | ||
---|---|---|
2544 | 2544 |
|
2545 | 2545 |
function find_dhcp6c_process($interface) { |
2546 | 2546 |
if ($interface) |
2547 |
$pid = `/bin/pgrep -axf "dhcp6c" |grep "{$interface}"`; |
|
2547 |
$pid = `/bin/ps auxw|grep "dhcp6c" |grep |
|
2548 |
"{$interface}"|awk '{print $2}'`; |
|
2548 | 2549 |
else |
2549 | 2550 |
$pid = 0; |
2550 | 2551 |
|
Also available in: Unified diff
Properly kill the dhcp6 client