summaryrefslogtreecommitdiff
path: root/etc/bash_completion.d
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-08-28 11:57:20 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-08-28 11:57:20 -0700
commit6eb8e60b0a53c21cfbc2996a1d7faa1dcc29e9f2 (patch)
tree8f4b75c179310a1ccf0cf1d8efa4c4a0b41576a7 /etc/bash_completion.d
parentd94bb30cb3b151953367a5a9ce9520204b56a70e (diff)
downloadvyatta-cfg-6eb8e60b0a53c21cfbc2996a1d7faa1dcc29e9f2.tar.gz
vyatta-cfg-6eb8e60b0a53c21cfbc2996a1d7faa1dcc29e9f2.zip
Allow use of aufs
Use $UNIONFS environment variable
Diffstat (limited to 'etc/bash_completion.d')
-rwxr-xr-xetc/bash_completion.d/20vyatta-cfg4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/bash_completion.d/20vyatta-cfg b/etc/bash_completion.d/20vyatta-cfg
index d829693..0233e99 100755
--- a/etc/bash_completion.d/20vyatta-cfg
+++ b/etc/bash_completion.d/20vyatta-cfg
@@ -79,7 +79,9 @@ discard ()
sudo rm -fr $VYATTA_CHANGES_ONLY_DIR $VYATTA_TEMP_CONFIG_DIR
make_vyatta_config_dir $VYATTA_CHANGES_ONLY_DIR
make_vyatta_config_dir $VYATTA_TEMP_CONFIG_DIR
- sudo mount -t unionfs -o dirs=${VYATTA_CHANGES_ONLY_DIR}=rw:${VYATTA_ACTIVE_CONFIGURATION_DIR}=ro unionfs ${VYATTA_TEMP_CONFIG_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
echo "Changes have been discarded"