summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Southworth <john.southworth@vyatta.com>2011-11-22 08:31:53 -0800
committerJohn Southworth <john.southworth@vyatta.com>2012-02-28 15:13:06 -0800
commit74f395e0ea9e41db5d12a8c9a6a4a2b1b801a633 (patch)
treea8bdf36f28b0a6d080cb5e0d2d6af44e564d9181
parent5fe4cca460e278e78e77253e54782108f8eeb74b (diff)
downloadvyatta-cfg-qos-74f395e0ea9e41db5d12a8c9a6a4a2b1b801a633.tar.gz
vyatta-cfg-qos-74f395e0ea9e41db5d12a8c9a6a4a2b1b801a633.zip
Fix pppoe qos policy application
-rwxr-xr-xscripts/ppp/qos8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/ppp/qos b/scripts/ppp/qos
index b510cae..326ce38 100755
--- a/scripts/ppp/qos
+++ b/scripts/ppp/qos
@@ -1,7 +1,9 @@
#! /bin/bash
-
-/opt/vyatta/sbin/vyatta-cfg-cmd-wrapper begin
+API=/bin/cli-shell-api
+session_env=$($API getSessionEnv $PPID)
+eval $session_env
+$API setupSession
/opt/vyatta/sbin/vyatta-qos.pl --start-interface $1
-/opt/vyatta/sbin/vyatta-cfg-cmd-wrapper end
+$API teardownSession