summaryrefslogtreecommitdiff
path: root/scripts/vyatta-cfg-cmd-wrapper
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-cfg-cmd-wrapper')
-rwxr-xr-xscripts/vyatta-cfg-cmd-wrapper2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/vyatta-cfg-cmd-wrapper b/scripts/vyatta-cfg-cmd-wrapper
index cf10fc5..d1b70d5 100755
--- a/scripts/vyatta-cfg-cmd-wrapper
+++ b/scripts/vyatta-cfg-cmd-wrapper
@@ -66,7 +66,7 @@ case "$1" in
rm -rf ${VYATTA_CONFIG_TMP}
rm -rf ${VYATTA_TEMP_CONFIG_DIR}
;;
- cleanup)
+ cleanup|discard)
sudo umount ${VYATTA_TEMP_CONFIG_DIR}
rm -rf $VYATTA_CHANGES_ONLY_DIR/* $VYATTA_CHANGES_ONLY_DIR/.modified
sudo mount -t $UNIONFS -o dirs=${VYATTA_CHANGES_ONLY_DIR}=rw:${VYATTA_ACTIVE_CONFIGURATION_DIR}=ro $UNIONFS ${VYATTA_TEMP_CONFIG_DIR}