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
done
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}"
else
$ORI_PPACMD addmc $@
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment