Skip to content

Commit

Permalink
Sync Get_WebUI_Page() with upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamm00 committed Jul 16, 2020
1 parent 3545f8f commit 58cb486
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions firewall.sh
Expand Up @@ -1111,17 +1111,17 @@ Generate_Stats() {
}

Get_WebUI_Page() {
if nvram get rc_support | grep -qF "am_addons"; then
if [ "$displaywebui" = "enabled" ]; then
for i in 1 2 3 4 5 6 7 8 9 10; do
page="/www/user/user$i.asp"
if [ ! -f "$page" ] || [ "$(md5sum < "$1")" = "$(md5sum < "$page")" ]; then
MyPage="user$i.asp"
return
fi
done
MyPage="none"
fi
if nvram get rc_support | grep -qF "am_addons" && [ "$displaywebui" = "enabled" ]; then
MyPage="none"
for i in 1 2 3 4 5 6 7 8 9 10; do
page="/www/user/user$i.asp"
if [ -f "$page" ] && [ "$(md5sum < "$1")" = "$(md5sum < "$page")" ]; then
MyPage="user$i.asp"
return
elif [ "$MyPage" = "none" ] && [ ! -f "$page" ]; then
MyPage="user$i.asp"
fi
done
fi
}

Expand Down

0 comments on commit 58cb486

Please sign in to comment.