My sincere thanks to everyone contributing to this, I never really liked running QoS on my AC86U because it meant having to enable Trend-Micro.
Although I'm not a native to Bash scripting, I've made some modifications to the script to allow for parameter passing to minimize the need to edit the main cake script directly (and also uploaded the binaries to my server for easy installation). This means you only need to edit /jffs/scripts/services-start to change your settings (e.g. speeds, optional extra parameters like "docsis ack-filter")
To anyone looking to put together the "official" script feel free to use any part of my code, no credits needed
https://5m.ca/cake/ (contains my script, the binaries, and an md5sums.txt file so you can compare the hashes against the Google Drive ones linked in the other installation guides). Other installation guides in this thread:
https://www.snbforums.com/threads/rt-ac86u-i-built-cake.49190/page-3#post-589049
https://www.snbforums.com/threads/rt-ac86u-i-built-cake.49190/page-5#post-593992 (<= good points on pre-requisites + tips)
Rough guide -
untested as my AC86U is at my parents and I'll be doing this late at night this weekend:
### Installation
Follow pre-reqs mentioned in
https://www.snbforums.com/threads/rt-ac86u-i-built-cake.49190/page-5#post-593992 (e.g. disable QoS, Entware + JFFS required) then SSH into your router:
# If RT-AC86U
Code:
wget https://5m.ca/cake/sched-cake-oot_2020-05-28-a5dccfd8-1_aarch64-3.10.ipk https://5m.ca/cake/tc-adv_4.16.0-git-20191110_aarch64-3.10.ipk
opkg install sched-cake-oot_2020-05-28-a5dccfd8-1_aarch64-3.10.ipk
opkg install tc-adv_4.16.0-git-20191110_aarch64-3.10.ipk
# If RT-AX88U
Code:
wget https://5m.ca/cake/sched-cake-oot_2020-05-28-a5dccfd8-ax_aarch64-3.10.ipk https://5m.ca/cake/tc-adv_4.16.0-git-20191110_aarch64-3.10.ipk
opkg install sched-cake-oot_2020-05-28-a5dccfd8-ax_aarch64-3.10.ipk
opkg install tc-adv_4.16.0-git-20191110_aarch64-3.10.ipk
# Download script
Code:
wget https://5m.ca/cake/cake-qos-start.sh -O /jffs/scripts/cake-qos-start.sh
chmod a+rx /jffs/scripts/cake-qos-start.sh
# To auto-run script on services start
Code:
nano /jffs/scripts/services-start
# Add the following line:
Change the bolded portions to match your needs, example: /jffs/scripts/cake-qos-start.sh start
30Mbit 5Mbit "docsis ack-filter"
IMPORTANT: check that the first line of this file is -
#!/bin/sh - add this if missing. If missing, also run
chmod a+rx /jffs/script/services-start after saving.
CTRL + X, Y, Enter to save
# To auto-stop script on services stop
Code:
nano /jffs/script/services-stop
# Add the following line:
Code:
/jffs/scripts/cake-qos-start.sh stop
IMPORTANT: check that the first line of this file is -
#!/bin/sh - add this if missing. If missing, also run
chmod a+rx /jffs/script/services-stop after saving.
CTRL + X, Y, Enter to save
Now you can either reboot your router or manually start / stop the scripts.
### Manually Start / Stop
To manually start:
Change the bolded portions to match your needs, example: /jffs/scripts/cake-qos-start.sh start
30Mbit 5Mbit "docsis ack-filter"
To manually stop:
Code:
sh /jffs/scripts/cake-qos-start.sh stop
### Validate / Test
Code:
tc qdisc
tc -s qdisc show dev eth0 # for upload
tc -s qdisc show dev ifb9eth0 # for download
Also check your system log for:
Cake Queue Management Starting (e.g.
Cake Queue Management Starting - config: 30Mbit | 5Mbit | docsis ack-filter)
### Uninstallation
Manually run:
Code:
sh /jffs/scripts/cake-qos-start.sh stop
Remove or comment out the cake lines from
/jffs/script/services-start and
/jffs/script/services-stop (I'd recommend commenting out vs removing)
To comment out, simply add a # to the beginning of the line.
(optional) Delete cake script by running:
rm /jffs/script/cake-qos-start.sh
(optional) You can remove the binaries via:
opkg remove binaryname (sorry I'm not too sure what the package names are but you can try
opkg list-installed | grep cake and
opkg list-installed | grep adv)