Révision 397e40d5
Ajouté par Renato Botelho il y a plus de 9 ans
etc/inc/pfsense-utils.inc | ||
---|---|---|
1250 | 1250 |
/* DHCP? -> see if dhclient is up */ |
1251 | 1251 |
case "dhcp": |
1252 | 1252 |
/* see if dhclient is up */ |
1253 |
if (find_dhclient_process($ifinfo['if']) <> "")
|
|
1253 |
if (find_dhclient_process($ifinfo['if']) != 0)
|
|
1254 | 1254 |
$ifinfo['dhcplink'] = "up"; |
1255 | 1255 |
else |
1256 | 1256 |
$ifinfo['dhcplink'] = "down"; |
etc/inc/service-utils.inc | ||
---|---|---|
171 | 171 |
|
172 | 172 |
function is_dhcp_running($interface) { |
173 | 173 |
$status = find_dhclient_process($interface); |
174 |
if($status <> "")
|
|
174 |
if($status != 0)
|
|
175 | 175 |
return true; |
176 | 176 |
return false; |
177 | 177 |
} |
Formats disponibles : Unified diff
find_dhclient_process() returns an int, not string