From 0206c89457f20b1e98ce70d6f5023d15461a00a9 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 29 Mar 2010 12:40:45 -0700 Subject: Put PPP qos setup inside configure mode Bug 5005 Make sure qos script is run inside equivalent environment as configuration mode. --- scripts/ppp/qos | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3