diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-02-19 07:00:00 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-02-19 07:00:00 +0000 |
commit | b3b2c1554d1e7e1d21816d001bcb782949d43a77 (patch) | |
tree | 67d87a287200ba362faca668a8f050043347b721 /etc | |
parent | ca09972d2754d9f0b6120bb4090a3755cb0bf71f (diff) | |
download | pfsense-b3b2c1554d1e7e1d21816d001bcb782949d43a77.zip pfsense-b3b2c1554d1e7e1d21816d001bcb782949d43a77.tar.gz |
use exec-command
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 2c68100..f052a11 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -127,7 +127,7 @@ function convert_ip_to_network_format($ip, $subnet) { * find_interface_ip($interface): return the interface ip (first found) */ function find_interface_ip($interface) { - $ip = system("/sbin/ifconfig {$interface} | grep \"inet \" | cut -d\" \" -f 2"); + $ip = exec_command("/sbin/ifconfig {$interface} | grep \"inet \" | cut -d\" \" -f 2"); return $ip; } |