diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-03-29 12:40:45 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-03-29 13:56:38 -0700 |
commit | 0206c89457f20b1e98ce70d6f5023d15461a00a9 (patch) | |
tree | c9e2a58924a5250f9ff3185371226b9d7f2232d1 /scripts | |
parent | c8f2c288665143e2b165b7d448555af9d657b56c (diff) | |
download | vyatta-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.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/ppp/qos | 12 |
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 |