diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-03-13 03:56:17 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-03-13 03:56:17 +0000 |
commit | 5f28e2d614ca8150d289571c2e6040357e728e0a (patch) | |
tree | 3bb5a8cc26d36b47b3a289d5ce8a7f5cd1999a91 /etc/rc.newwanip | |
parent | a6abbd66613da63bd4bccef7b6c2128645a0b2e8 (diff) | |
download | pfsense-5f28e2d614ca8150d289571c2e6040357e728e0a.zip pfsense-5f28e2d614ca8150d289571c2e6040357e728e0a.tar.gz |
Remove \n
Diffstat (limited to 'etc/rc.newwanip')
-rwxr-xr-x | etc/rc.newwanip | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/rc.newwanip b/etc/rc.newwanip index 8f5fd0d..dcec79e 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -35,9 +35,11 @@ /* WAN IP address has changed */ - if($argv[1] <> "") { - $curwanip = find_interface_ip($argv[1]); - $interface = convert_real_interface_to_friendly_interface_name($argv[1]); + $argument = str_replace("\n", "", $argv[1]); + + if($$argument <> "") { + $curwanip = find_interface_ip($$argument); + $interface = convert_real_interface_to_friendly_interface_name($$argument); if($curwanip == "") $curwanip = get_current_wan_address(); } else { |