summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xetc/bash_completion.d/20vyatta-cfg6
-rw-r--r--etc/shell/level/users/allowed-op1
2 files changed, 4 insertions, 3 deletions
diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg
index d501019..f1d100e 100755
--- a/etc/bash_completion.d/20vyatta-cfg
+++ b/etc/bash_completion.d/20vyatta-cfg
@@ -76,8 +76,8 @@ discard ()
fi
sudo umount ${VYATTA_TEMP_CONFIG_DIR};
- rm -fr ${VYATTA_CHANGES_ONLY_DIR};
- mkdir -p ${VYATTA_CHANGES_ONLY_DIR};
+ sudo rm -fr ${VYATTA_CHANGES_ONLY_DIR};
+ sudo mkdir -p ${VYATTA_CHANGES_ONLY_DIR};
sudo mount -t unionfs -o dirs=${VYATTA_CHANGES_ONLY_DIR}=rw:${VYATTA_ACTIVE_CONFIGURATION_DIR}=ro unionfs ${VYATTA_TEMP_CONFIG_DIR};
if (( changes )); then
@@ -814,6 +814,7 @@ vyatta_config_complete ()
if (( ${#COMP_WORDS[@]} < 2 )); then
declare -a hitems=( "commit" \
"delete" \
+ "discard" \
"edit" \
"exit" \
"load" \
@@ -824,6 +825,7 @@ vyatta_config_complete ()
declare -a hstrs=( \
"Commit the current set of changes" \
"Delete a configuration element" \
+ "Discard uncommitted changes" \
"Edit a sub-element" \
"Exit from this configuration level" \
"Load configuration from a file" \
diff --git a/etc/shell/level/users/allowed-op b/etc/shell/level/users/allowed-op
index 5b997da..724c235 100644
--- a/etc/shell/level/users/allowed-op
+++ b/etc/shell/level/users/allowed-op
@@ -1,4 +1,3 @@
-discard
clear
debug
exit