diff options
author | Jouke Witteveen <j.witteveen@gmail.com> | 2015-01-06 19:31:39 +0100 |
---|---|---|
committer | Jouke Witteveen <j.witteveen@gmail.com> | 2015-01-12 22:08:40 +0100 |
commit | 0cc69f13c2355831e8f07962c072c09ca35fd5f3 (patch) | |
tree | 68bfc12809da42dc51b59a27b9c3eb694f748106 /src | |
parent | f9a86cbf053a91a387499615bc6930548a51a463 (diff) | |
download | netctl-0cc69f13c2355831e8f07962c072c09ca35fd5f3.tar.gz netctl-0cc69f13c2355831e8f07962c072c09ca35fd5f3.tar.xz |
Add edit subcommand to netctl
Diffstat (limited to 'src')
-rw-r--r-- | src/netctl.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/netctl.in b/src/netctl.in index b66cf71..2953ecf 100644 --- a/src/netctl.in +++ b/src/netctl.in @@ -20,8 +20,9 @@ Commands: 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 + is-enabled [PROFILE] Check whether a profile is enabled + edit [PROFILE] Edit a profile END } @@ -180,6 +181,8 @@ case $# in if sd_booted; then systemctl daemon-reload fi;; + edit) + exec ${EDITOR:-nano} "$PROFILE_DIR/$2";; *) exit_error "$(usage)";; esac;; |