summaryrefslogtreecommitdiff
path: root/scripts/vyatta-cfg-cmd-wrapper
diff options
context:
space:
mode:
authorrbalocca <rbalocca@vyatta.com>2008-04-24 13:33:46 -0700
committerrbalocca <rbalocca@vyatta.com>2008-04-24 13:33:46 -0700
commita309f120a9ff472d45544a9101226334e426e76a (patch)
treebfdb25a51f42443587668e8fd5ba0597b0d744d9 /scripts/vyatta-cfg-cmd-wrapper
parentc29e34d11a22eecbaa50fa134965f2fa036f47f3 (diff)
parent7fd560b72df1b327b4b47a6232dfcf16d6fae52c (diff)
downloadvyatta-cfg-a309f120a9ff472d45544a9101226334e426e76a.tar.gz
vyatta-cfg-a309f120a9ff472d45544a9101226334e426e76a.zip
Merge branch 'glendale'
Diffstat (limited to 'scripts/vyatta-cfg-cmd-wrapper')
-rwxr-xr-xscripts/vyatta-cfg-cmd-wrapper21
1 files changed, 20 insertions, 1 deletions
diff --git a/scripts/vyatta-cfg-cmd-wrapper b/scripts/vyatta-cfg-cmd-wrapper
index 4a42105..518147d 100755
--- a/scripts/vyatta-cfg-cmd-wrapper
+++ b/scripts/vyatta-cfg-cmd-wrapper
@@ -1,5 +1,24 @@
#!/bin/bash
+# Author: An-Cheng Huang <ancheng@vyatta.com>
+# Date: 2007
+# Description: command wrapper
+
+# **** License ****
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 2 as
+# published by the Free Software Foundation.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# General Public License for more details.
+#
+# This code was originally developed by Vyatta, Inc.
+# Portions created by Vyatta are Copyright (C) 2006, 2007, 2008 Vyatta, Inc.
+# All Rights Reserved.
+# **** End License ****
+
if grep -q union=aufs /proc/cmdline || grep -q aufs /proc/filesystems ; then
export UNIONFS=aufs
else
@@ -13,7 +32,7 @@ export VYATTA_EDIT_LEVEL=/;
export VYATTA_TEMPLATE_LEVEL=/;
export VYATTA_ACTIVE_CONFIGURATION_DIR=/opt/vyatta/config/active;
-export VYATTA_CHANGES_ONLY_DIR=/opt/vyatta/config/tmp/changes_only_$PPID;
+export VYATTA_CHANGES_ONLY_DIR=/tmp/changes_only_$PPID;
export VYATTA_TEMP_CONFIG_DIR=/opt/vyatta/config/tmp/new_config_$PPID;
export VYATTA_CONFIG_TMP=/opt/vyatta/config/tmp/tmp_$PPID;