From 74f395e0ea9e41db5d12a8c9a6a4a2b1b801a633 Mon Sep 17 00:00:00 2001 From: John Southworth Date: Tue, 22 Nov 2011 08:31:53 -0800 Subject: Fix pppoe qos policy application --- scripts/ppp/qos | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3