Skip to content
Snippets Groups Projects
Commit fe96a30d authored by ke hu's avatar ke hu Committed by Sukru Senli
Browse files

ppacmd : add an extra check for accelerator entries

If it is not in the hw table, do not modify it
parent 48895736
No related branches found
No related tags found
No related merge requests found
...@@ -63,7 +63,8 @@ while getopts "s:g:l:w:i:f:" opt; do ...@@ -63,7 +63,8 @@ while getopts "s:g:l:w:i:f:" opt; do
done done
ses=$(cat /proc/ppa/api/mini_session |tr -d ' ' |grep "${group}|${wan}" |sort -u |cut -d '|' -f 6) ses=$(cat /proc/ppa/api/mini_session |tr -d ' ' |grep "${group}|${wan}" |sort -u |cut -d '|' -f 6)
if [ -n "$lan" -a -n "$ses" ]; then hws=$(cat /proc/ppa/pae/route | grep "${group}")
if [ -n "$lan" -a -n "$ses" -a -n "$hws" ]; then
route_modify ${ses} "${lan}" route_modify ${ses} "${lan}"
else else
$ORI_PPACMD addmc $@ $ORI_PPACMD addmc $@
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment