Skip to content

Commit

Permalink
Merge pull request #58 from maghuro/patch-1
Browse files Browse the repository at this point in the history
fix script exiting when QoS is active
  • Loading branch information
Adamm00 committed Aug 8, 2020
2 parents fb61052 + 310ac70 commit 0cd1b89
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cake-qos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,9 @@ Cake_Start(){

if [ "$(nvram get qos_enable)" = "1" ]; then
nvram set qos_enable="0"
nvram save
nvram commit
service "restart_qos;restart_firewall" >/dev/null 2>&1
Print_Output "true" "Disabling Asus QOS" "$WARN"
exit 1
Print_Output "true" "Disabling Asus QoS" "$WARN"
fi

if [ ! -L "/opt/bin/${SCRIPT_NAME}" ] || [ "$(readlink /opt/bin/${SCRIPT_NAME})" != "${SCRIPT_DIR}/${SCRIPT_NAME}" ]; then
Expand Down Expand Up @@ -750,4 +749,4 @@ case $1 in
;;
esac
Display_Line
if [ -n "$reloadmenu" ]; then echo; printf "[*] Press Enter To Continue..."; read -r "reloadmenu"; exec "$0"; fi
if [ -n "$reloadmenu" ]; then echo; printf "[*] Press Enter To Continue..."; read -r "reloadmenu"; exec "$0"; fi

0 comments on commit 0cd1b89

Please sign in to comment.