diff options
author | Alex Harpin <development@landsofshadow.co.uk> | 2015-10-17 19:22:18 +0100 |
---|---|---|
committer | Alex Harpin <development@landsofshadow.co.uk> | 2015-10-17 19:56:59 +0100 |
commit | 4151eeb1698d541dadf9ed226374944de65cd496 (patch) | |
tree | c888d4b67110541997b1918143e7b2dddada3875 /scripts | |
parent | 8780ad092dcd9de73a1cd03f0ba729f87ba162db (diff) | |
download | vyatta-cfg-system-4151eeb1698d541dadf9ed226374944de65cd496.tar.gz vyatta-cfg-system-4151eeb1698d541dadf9ed226374944de65cd496.zip |
vyatta-cfg-system: remove ip address requirements from port checking
Remove IP address requirements when checking for port availability, no
longer needed.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/is_port_available.pl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/is_port_available.pl b/scripts/is_port_available.pl index 52a5ad0f..acf3e6e3 100755 --- a/scripts/is_port_available.pl +++ b/scripts/is_port_available.pl @@ -5,10 +5,9 @@ use strict; use lib "/opt/vyatta/share/perl5"; use Vyatta::Misc; -my $ip = $ARGV[0]; -my $port = $ARGV[1]; +my $port = $ARGV[0]; -if(!defined($ip) || !defined($port) || !is_port_available($ip, $port)) { +if(!defined($port) || !is_port_available($port)) { exit 1; } else { exit 0; |