diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2009-05-21 14:07:43 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2009-05-21 14:07:43 -0700 |
commit | 613b7e3b36684e92cb7765b03bb4706a6caed98b (patch) | |
tree | 59c98b2416f61fd00d6a2d401cf5dfb879ceb540 /scripts | |
parent | 50d1517216bd9b1e9ded0a5189e1f4bffc55c678 (diff) | |
download | vyatta-cfg-613b7e3b36684e92cb7765b03bb4706a6caed98b.tar.gz vyatta-cfg-613b7e3b36684e92cb7765b03bb4706a6caed98b.zip |
add "discard" command to cmd wrapper
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta-cfg-cmd-wrapper | 2 |
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} |