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

Add AsusWRT support #270

Closed LiveWire1968 closed 4 months ago

LiveWire1968 commented 7 months ago

@lynxthecat I see she-bangs were just changed, if you care about updating your setup script for asus also.. /etc/OS-release does not exist, but uname -a will output ASUSWRT-Merlin. Only changes is scripts go in /jffs/scripts, config files should be in /jffs/configs ,mine still sits in /jffs/scripts. logs go in /tmp then dl_if=ifb4eth0 # download interface ul_if=eth0 # upload interface I believe thats really all of it. But the user would still need to make sure opkg packages are installed

lynxthecat commented 7 months ago

@rany2 do you suppose it might be an idea to add support for Asus Merlin with extra setup options? I don’t suppose you might be motivated to do so? I would understand entirely if not. Neither of us even have Asus Merlin. But it’s a very friendly community and there are a fair number of users.

rany2 commented 7 months ago

@lynxthecat shouldn't be much effort, I'll make a PR and ping @LiveWire1968 to test it

rany2 commented 7 months ago

@LiveWire1968 opkg is available as part of entware and the package names cake-autorate needs are the same between asuswrt and openwrt; right?

LiveWire1968 commented 7 months ago

@LiveWire1968 opkg is available as part of entware and the package names cake-autorate needs are the same between asuswrt and openwrt; right?

opkg is part of entware, packaged needed installed are bash iputils-ping fping coreutils-mkfifo

rany2 commented 7 months ago

Fyi mkfifo isn't needed anymore.

LiveWire1968 commented 7 months ago

image

Only ways i see to determine Asus

LiveWire1968 commented 7 months ago

@LiveWire1968 opkg is available as part of entware and the package names cake-autorate needs are the same between asuswrt and openwrt; right?

@rany2 I havent had time to really mess with it, but asus bash does not like launcher.sh at all. I just changed it to below for now, does same thing though?

!/usr/bin/env bash

killall cake-autorate.sh sleep 2s /jffs/scripts/cake-autorate.sh

rany2 commented 7 months ago

@LiveWire1968 does uname -o also return ASUSWRT-Merlin?

rany2 commented 7 months ago

but asus bash does not like launcher.sh at all

what bash version is this?

LiveWire1968 commented 7 months ago

@rany2 uname -o does show ASUSWRT-Merlin Bash version GNU bash, version 5.2.15(1)-release (aarch64-openwrt-linux-gnu) launcher.sh error ./launcher.sh: line 14: ((: cake_instance</jffs/scripts/config.primary.sh: syntax error: operand expected (error token is "/jffs/scripts/config.primary.sh")

rany2 commented 4 months ago

@LiveWire1968 Are you still available if I were to make changes now?

rany2 commented 4 months ago

I'm a bit more ambitious and want cake-autorate to switch to /jffs on its own in the main script.