Skip to content

Commit

Permalink
v1.0.6
Browse files Browse the repository at this point in the history
Apply archer instead of runner #61
  • Loading branch information
Adamm00 committed Dec 7, 2020
1 parent eb23e26 commit a778a53
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions cake-qos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
## |_| ##
## ##
## https://github.com/ttgapers/cakeqos-merlin ##
## v1.0.5 ##
## v1.0.6 ##
## ##
#########################################################

Expand Down Expand Up @@ -246,7 +246,11 @@ Cake_Start(){
cru a "$SCRIPT_NAME_FANCY" "0 * * * * ${SCRIPT_DIR}/${SCRIPT_NAME} checkrun"

Print_Output "true" "Starting - ( ${dlspeed}Mbit | ${upspeed}Mbit | $queueprio | $optionsdl | $optionsup )" "$PASS"
runner disable 2>/dev/null
if [ "$RMODEL" = "RT-AX58U" ] || [ "$RMODEL" = "RT-AX3000" ]; then
fc config --hw-accel 0
else
runner disable 2>/dev/null
fi
fc disable 2>/dev/null
fc flush 2>/dev/null
nvram set runner_disable="1"
Expand All @@ -272,7 +276,11 @@ Cake_Stop(){
/opt/sbin/tc qdisc del dev ${iface} root 2>/dev/null
ip link del ifb9${iface}
rmmod sch_cake 2>/dev/null
runner enable
if [ "$RMODEL" = "RT-AX58U" ] || [ "$RMODEL" = "RT-AX3000" ]; then
fc config --hw-accel 1
else
runner enable
fi
fc enable
nvram set runner_disable="0"
nvram set fc_disable="0"
Expand Down

0 comments on commit a778a53

Please sign in to comment.