Revision fa15ea86
Added by Scott Ullrich over 18 years ago
etc/inc/pfsense-utils.inc | ||
---|---|---|
1284 | 1284 |
} |
1285 | 1285 |
|
1286 | 1286 |
function guess_interface_from_ip($ipaddress) { |
1287 |
$ret = exec_command("/sbin/route -n get {$ipaddress} | /usr/bin/grep interface | /usr/bin/awk '{ print \$2 |
|
1288 |
; };'"); |
|
1287 |
$ret = exec_command("/sbin/route -n get {$ipaddress} | /usr/bin/grep interface | /usr/bin/awk '{ print \$2; };'"); |
|
1289 | 1288 |
return $ret; |
1290 | 1289 |
} |
1291 | 1290 |
|
Also available in: Unified diff
Do not carriage return in the middle of a shell command