From e86f028c2f20be59ee0ae3a3dc78a612a93d9846 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Wed, 30 Jan 2019 18:56:48 +0100 Subject: [docs] add a small usage hint -Resolves: #9378 --- src/leap/bitmask/vpn/helpers/linux/bitmask-root | 29 +++++++++++++++++++------ 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/src/leap/bitmask/vpn/helpers/linux/bitmask-root b/src/leap/bitmask/vpn/helpers/linux/bitmask-root index ff689167..dad5247e 100755 --- a/src/leap/bitmask/vpn/helpers/linux/bitmask-root +++ b/src/leap/bitmask/vpn/helpers/linux/bitmask-root @@ -84,7 +84,7 @@ def get_no_group_name(): return None -VERSION = "9" +VERSION = "10" SCRIPT = "bitmask-root" NAMESERVER_TCP = "10.41.0.1" NAMESERVER_UDP = "10.42.0.1" @@ -985,9 +985,24 @@ def fw_email_stop(): # USAGE = """ -bitmask-root version -bitmask-root -""" +This is bitmask-root version {VERSION} + +This program manipulates the Bitmask firewall. It is *not* intented to be used +manually. + +Commands: + +{SCRIPT} version +{SCRIPT} restart +{SCRIPT} openvpn start +{SCRIPT} openvpn stop +{SCRIPT} firewall start +{SCRIPT} firewall stop +{SCRIPT} firewall isup +{SCRIPT} fw-email start +{SCRIPT} fw-email stop +{SCRIPT} fw-email isup +""".format(SCRIPT=SCRIPT, VERSION=VERSION) def main(): @@ -1002,7 +1017,7 @@ def main(): is_restart = False - if args and (args[0] == 'help' or args[0] == '-h'): + if command == 'help' or command == '-h': print(USAGE) exit(0) @@ -1065,9 +1080,9 @@ def main(): bail("INFO: bitmask email firewall is down") else: - bail("ERROR: No such command. Try bitmask-root -h") + bail("ERROR: No such command. Try bitmask-root help") else: - bail("ERROR: No such command. Try bitmask-root -h") + bail("ERROR: No such command. Try bitmask-root help") if __name__ == "__main__": -- cgit v1.2.3