summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Vincent <git@tlvince.com>2012-09-09 13:37:23 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2012-09-13 17:06:03 +0200
commit128cd8d55e8fca8e0cb1678eda1746cd5e320915 (patch)
tree4375a51587bb24a50477322ca2728063beeefda7
parent1982c0461624aa3c6a20a3db98365067e6d5d065 (diff)
downloadnetctl-128cd8d55e8fca8e0cb1678eda1746cd5e320915.tar.gz
netctl-128cd8d55e8fca8e0cb1678eda1746cd5e320915.tar.xz
Replace multiple echo calls with heredoc
-rwxr-xr-xscripts/netcfg36
1 files changed, 19 insertions, 17 deletions
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