Skip to content

Commit

Permalink
Add "debug info extended" command
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamm00 committed Oct 24, 2018
1 parent e55cc9c commit 1f9d93d
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions firewall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# __/ | #
# |___/ #
# #
## - 20/10/2018 - Asus Firewall Addition By Adamm v6.5.2 #
## - 24/10/2018 - Asus Firewall Addition By Adamm v6.5.2 #
## https://github.com/Adamm00/IPSet_ASUS #
#############################################################################################################

Expand Down Expand Up @@ -665,7 +665,8 @@ Print_Log () {
}

Write_Config () {
{ echo "## Generated By Skynet - Do Not Manually Edit ##"
{ echo "################################################"
echo "## Generated By Skynet - Do Not Manually Edit ##"
echo "## $(date +"%b %d %T") ##"
echo
echo "## Installer ##"
Expand All @@ -684,12 +685,16 @@ Write_Config () {
echo "customlist2url=\"$customlist2url\""
echo "countrylist=\"$countrylist\""
echo "excludelists=\"$excludelists\""
echo
echo "## Settings ##"
echo "unbanprivateip=\"$unbanprivateip\""
echo "loginvalid=\"$loginvalid\""
echo "banaiprotect=\"$banaiprotect\""
echo "securemode=\"$securemode\""
echo "extendedstats=\"$extendedstats\""
echo "wifemode=\"$wifemode\""; } > "$skynetcfg"
echo "wifemode=\"$wifemode\""
echo
echo "################################################"; } > "$skynetcfg"
}


Expand Down Expand Up @@ -3099,6 +3104,7 @@ case "$1" in
if [ "$wifemode" = "enabled" ]; then $grn "[Enabled]"; else $ylow "[Disabled]"; fi
echo
echo "${passedtests}/${totaltests} Tests Sucessful."
if [ "$3" = "extended" ]; then echo; echo; cat "$skynetcfg"; echo; fi
nocfg="1"
;;
clean)
Expand Down

0 comments on commit 1f9d93d

Please sign in to comment.