diff options
Diffstat (limited to 'src/netcfg')
-rw-r--r-- | src/netcfg | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -18,24 +18,26 @@ usage() echo " Start specified profile: netcfg profile " echo " Other functions: netcfg argument profile" echo "Arguments:" + echo "-a, all-down Take all active profiles down" echo "-c, check-iface Do not start profile if interface is already up" echo "-d, down Take specified profile down" - echo "-a, all-down Take all active profiles down" + echo "-h, help This help message" echo "-i, iface-down Take down profile active on specified interface" + echo "-r, reconnect Disconnect and reconnect specified profile" + echo "-u, up Start specified profile" + echo "-v, version Output version information and exit" echo " all-resume Resume previously suspended profiles and reconnect them" echo " all-suspend Store a list of current running profiles and suspend them" - echo "-h, --help This message" - echo "-v, --version Output version information and exit" } # TODO: Re-add ROOT check and rewrite with getopts from BashFAQ case $1 in - --version|-v) + --version|-v|version) version;; - --help|-h) + --help|-h|help) usage;; - -c|check-iface|up) + -c|check-iface|-u|up) CHECK="YES"; profile_up $2;; clean) |