From 128cd8d55e8fca8e0cb1678eda1746cd5e320915 Mon Sep 17 00:00:00 2001 From: Tom Vincent Date: Sun, 9 Sep 2012 19:37:23 +0800 Subject: Replace multiple echo calls with heredoc --- scripts/netcfg | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) (limited to 'scripts') diff --git a/scripts/netcfg b/scripts/netcfg index f591641..50e8528 100755 --- a/scripts/netcfg +++ b/scripts/netcfg @@ -12,23 +12,25 @@ version() usage() { version - echo "Usage:" - echo " Start specified profile: netcfg profile " - echo " Other functions: netcfg argument profile" - echo "Arguments:" - echo " current Report currently running profiles" - 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 "-D, iface-down Take down profile active on specified interface" - echo "-h, help This help message" - echo "-l, list List all available profiles" - echo "-r, reconnect Disconnect and reconnect specified profile" - echo "-R, iface-recon Reconnect profile active on specified interface" - 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" + cat << END +Usage: + Start specified profile: netcfg profile + Other functions: netcfg argument profile +Arguments: + current Report currently running profiles +-a, all-down Take all active profiles down +-c, check-iface Do not start profile if interface is already up +-d, down Take specified profile down +-D, iface-down Take down profile active on specified interface +-h, help This help message +-l, list List all available profiles +-r, reconnect Disconnect and reconnect specified profile +-R, iface-recon Reconnect profile active on specified interface +-u, up Start specified profile +-v, version Output version information and exit + all-resume Resume previously suspended profiles and reconnect them + all-suspend Store a list of current running profiles and suspend them +END } # TODO: Re-add ROOT check and rewrite with getopts from BashFAQ -- cgit v1.2.3-24-g4f1b