lynxthecat / cake-autorate

Eliminate the excess latency and jitter terrorizing your 4G, 5G, LTE, Starlink or other variable rate connection!
https://www.bufferbloat.net
GNU General Public License v2.0
263 stars 24 forks source link

How to install it on AsusWRT-Merlin? #267

Closed pitris90 closed 7 months ago

pitris90 commented 7 months ago

When I try to install this script on asuswrt-merlin, nothing happens (config isnt created, but even no error message is displayed)

pitris90@RT-AX86U_Pro:/tmp/home/root# sh /tmp/cake-autorate_setup.sh
pitris90@RT-AX86U_Pro:/tmp/home/root#

I also tried this script: https://github.com/LiveWire1968/Asus-cake-autorate but there was some error:

pitris90@RT-AX86U_Pro:/tmp# sh /tmp/cake-autorate_setup.sh
/tmp/cake-autorate_setup.sh: line 70: syntax error: unexpected end of file (expecting "fi")
lynxthecat commented 7 months ago

cake-autorate has been written for use on OpenWrt, albeit porting to Asus Merlin should be straightforward as @LiveWire1968 did for an older version some time ago.

Looking at the install script @LiveWire1968 wrote, some of the filenames used in cake-autorate have since changed, and so the install script would need updating.

@LiveWire1968 I wonder if you could be persuaded to update your install script to work with the latest version of cake-autorate?

@pitris90 you could try just downloading the correct files - compare the install script @LiveWire1968 wrote against the files present at:

https://github.com/lynxthecat/cake-autorate

You need: 'cake-autorate.sh'; 'config.primary.sh'; 'defaults.sh'; and 'lib.sh'.

And then you should be able to test by running: 'cake-autorate.sh'.

pitris90 commented 7 months ago

Hmm, I will try that, but I think I will need some help since I don't know all of the changes that were needed to make it work on merlin. I also don't have much insight into this script.

lynxthecat commented 7 months ago

Try asking here:

https://www.snbforums.com/forums/asuswrt-merlin.42/

LiveWire1968 commented 7 months ago

I dont use it anymore, but I updated the files on github (no install script). Just drop all 4 in /jffs/scripts make sure the entware packages are installed. Its very minor changes. https://github.com/LiveWire1968

LiveWire1968 commented 7 months ago

@lynxthecat for future reference. Im pretty sure the only changes needed this go around was changing #/bin/bash to #/opt/bin/bash in the scripts, changing the dl_if, and up_if, then changing cake-autorate.sh to look for scripts in /jffs/scripts. I think i missed one part of log files should go into /tmp, not /var/log on asus

lynxthecat commented 7 months ago

Thanks for your input here @LiveWire1968.

rany2 commented 7 months ago

@LiveWire1968 does asuswrt have a /usr/bin/env ?

LiveWire1968 commented 7 months ago

@LiveWire1968 does asuswrt have a /usr/bin/env ?

yes