summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2015-01-06 19:31:39 +0100
committerJouke Witteveen <j.witteveen@gmail.com>2015-01-12 22:08:40 +0100
commit0cc69f13c2355831e8f07962c072c09ca35fd5f3 (patch)
tree68bfc12809da42dc51b59a27b9c3eb694f748106 /src
parentf9a86cbf053a91a387499615bc6930548a51a463 (diff)
downloadnetctl-0cc69f13c2355831e8f07962c072c09ca35fd5f3.tar.gz
netctl-0cc69f13c2355831e8f07962c072c09ca35fd5f3.tar.xz
Add edit subcommand to netctl
Diffstat (limited to 'src')
-rw-r--r--src/netctl.in5
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;;