diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-04-18 19:50:07 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-04-18 19:50:07 +0000 |
commit | fa15ea86342636da3e80429aeeb303ca0fd0b74b (patch) | |
tree | b5f8860f8770a4fed282dfbc06818ffb84c24922 | |
parent | ccf95b5a8aa19d508f19933998994a314cda8a66 (diff) | |
download | pfsense-fa15ea86342636da3e80429aeeb303ca0fd0b74b.zip pfsense-fa15ea86342636da3e80429aeeb303ca0fd0b74b.tar.gz |
Do not carriage return in the middle of a shell command
-rw-r--r-- | etc/inc/pfsense-utils.inc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index e155eac..4ca6445 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1284,8 +1284,7 @@ function find_interface_ip($interface, $flush = false) { } function guess_interface_from_ip($ipaddress) { - $ret = exec_command("/sbin/route -n get {$ipaddress} | /usr/bin/grep interface | /usr/bin/awk '{ print \$2 -; };'"); + $ret = exec_command("/sbin/route -n get {$ipaddress} | /usr/bin/grep interface | /usr/bin/awk '{ print \$2; };'"); return $ret; } |