summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-03-29 12:40:45 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-03-29 13:56:38 -0700
commit0206c89457f20b1e98ce70d6f5023d15461a00a9 (patch)
treec9e2a58924a5250f9ff3185371226b9d7f2232d1
parentc8f2c288665143e2b165b7d448555af9d657b56c (diff)
downloadvyatta-cfg-qos-0206c89457f20b1e98ce70d6f5023d15461a00a9.tar.gz
vyatta-cfg-qos-0206c89457f20b1e98ce70d6f5023d15461a00a9.zip
Put PPP qos setup inside configure mode
Bug 5005 Make sure qos script is run inside equivalent environment as configuration mode.
-rwxr-xr-xscripts/ppp/qos12
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/ppp/qos b/scripts/ppp/qos
index f7b308d..ffa618e 100755
--- a/scripts/ppp/qos
+++ b/scripts/ppp/qos
@@ -1,6 +1,12 @@
-#! /bin/sh
+#! /bin/bash
-# Pretend we are inside CLI to find configuration varaibles
-export VYATTA_ACTIVE_CONFIGURATION_DIR=/opt/vyatta/config/active;
+# setup the config environment
+export VYATTA_ACTIVE_CONFIGURATION_DIR=/opt/vyatta/config/active
+export VYATTA_EDIT_LEVEL="/"
+export VYATTA_TEMPLATE_LEVEL="/"
+
+/opt/vyatta/sbin/vyatta-cfg-cmd-wrapper begin
/opt/vyatta/sbin/vyatta-qos.pl --start-interface $1
+
+/opt/vyatta/sbin/vyatta-cfg-cmd-wrapper end