summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/net_monitor
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/standalone/net_monitor')
-rwxr-xr-xperl-install/standalone/net_monitor5
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-install/standalone/net_monitor b/perl-install/standalone/net_monitor
index 09fb02114..6dc90d224 100755
--- a/perl-install/standalone/net_monitor
+++ b/perl-install/standalone/net_monitor
@@ -30,7 +30,8 @@ use network::netconnect;
use network::tools;
use MDK::Common::Globals "network", qw($in $prefix $connect_file $disconnect_file $connect_prog);
-"@ARGV" =~ /--help/ and print q(Network & Internet connection and monitoring application
+if ("@ARGV" =~ /--help|-h/) {
+ print q(Network & Internet connection and monitoring application
--defaultintf interface : show this interface by default
--connect : connect to internet if not already connected
@@ -39,6 +40,8 @@ use MDK::Common::Globals "network", qw($in $prefix $connect_file $disconnect_fil
--status : returns 1 if connected 0 otherwise, then exit.
--quiet : don't be interactive. To be used with (dis)connect.
);
+ exit(0);
+}
if ("@ARGV" =~ /--status/) { print connected(); exit(0) }
my $force = "@ARGV" =~ /--force/;