diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2014-05-06 12:02:01 +0200 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2014-05-06 12:02:01 +0200 |
commit | aca869f328fb2695be0bf04114d3007619f605fd (patch) | |
tree | c6f5e7630a714698153975a3ff6d783fb4ea79fc /src | |
parent | 75b7a33a1275e9cdb7c0959f0edfef81ff2c8e43 (diff) | |
download | netctl-aca869f328fb2695be0bf04114d3007619f605fd.tar.gz netctl-aca869f328fb2695be0bf04114d3007619f605fd.tar.xz |
Add is-enabled subcommand to netctl
Diffstat (limited to 'src')
-rw-r--r-- | src/netctl.in | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/netctl.in b/src/netctl.in index dc19ab0..90be39e 100644 --- a/src/netctl.in +++ b/src/netctl.in @@ -9,18 +9,19 @@ Usage: netctl {COMMAND} [PROFILE] [--help|--version] Commands: - list List available profiles - store Save which profiles are active - restore Load saved profiles - stop-all Stops all profiles - start [PROFILE] Start a profile - stop [PROFILE] Stop a profile - restart [PROFILE] Restart a profile - switch-to [PROFILE] Switch to a profile - status [PROFILE] Show runtime status of a profile - enable [PROFILE] Enable the systemd unit for a profile - disable [PROFILE] Disable the systemd unit for a profile - reenable [PROFILE] Reenable the systemd unit for a profile + list List available profiles + store Save which profiles are active + restore Load saved profiles + stop-all Stops all profiles + start [PROFILE] Start a profile + stop [PROFILE] Stop a profile + restart [PROFILE] Restart a profile + switch-to [PROFILE] Switch to a profile + status [PROFILE] Show runtime status of a profile + enable [PROFILE] Enable the systemd unit for a profile + disable [PROFILE] Disable the systemd unit for a profile + is-enabled [PROFILE] Check whether a profile is enabled + reenable [PROFILE] Reenable the systemd unit for a profile END } @@ -160,7 +161,7 @@ case $# in esac;; 2) case $1 in - start|stop|restart|status) + start|stop|restart|status|is-enabled) sd_call "$1" "$2";; switch-to) ensure_root "$(basename "$0")" |