This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This will get the filenames in your currently running OpenWRT | |
# image and download to override into the firmware path. | |
# | |
# I've used this in my MT6000 to override the firmware to perform | |
# some A/B comparisions, and choose which one to use based on my | |
# environment needs | |
# | |
# NOTE: Run this in your MT6000 directly | |
( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for phy in $(find /sys/kernel -name 'phy[0-9]'); do | |
(cd $phy | |
l=1500 | |
h=5000 | |
echo 0 $l $h > "$phy/aql_txq_limit" | |
echo 1 $l $h > "$phy/aql_txq_limit" | |
echo 2 $l $h > "$phy/aql_txq_limit" | |
echo 3 $l $h > "$phy/aql_txq_limit" | |
echo 8000 > "$phy/aql_threshold" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pulls into tmpfs, and starts a server in a separate subshell | |
# for the duration of the boot. Everything will be gone after | |
# a reboot. | |
( | |
cd /tmp | |
wget -O - https://github.com/Zoxc/crusader/releases/download/v0.3.2/Crusader-$(uname)-ARM-64-bit.tar.gz | tar -xzf - | |
/tmp/Crusader-*/crusader serve | |
) & |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This will get the filenames in your currently running OpenWRT | |
# image and download to override into the firmware path. | |
# | |
# I've used this in my DL-WRX36 to override the firmware to perform | |
# some A/B comparisions, and choose which one to use based on my | |
# environment needs | |
# | |
# NOTE: Run this in your DL-WRX36 directly | |
( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
disconnect() { | |
local dev=$1 | |
local mac=$2 | |
echo "$dev: disconnect $mac" > /dev/kmsg | |
ubus call hostapd.$dev del_client "{'addr':'$mac', 'reason':8, 'deauth':true, 'ban_time':0}" | |
} | |
mt79_rssi_monitor() { | |
local dev=$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uci set dawn.@network[0].broadcast_ip='10.0.0.255' | |
uci set dawn.@times[0].update_client='3' | |
uci set dawn.@times[0].remove_client='20' | |
uci set dawn.@times[0].remove_probe='20' | |
uci set dawn.global.kicking='3' | |
uci set dawn.global.rrm_mode='t' | |
uci set dawn.global.kicking_threshold='20' | |
uci set dawn.global.min_number_to_kick='3' | |
uci set dawn.global.bandwidth_threshold='0' | |
uci set dawn.global.set_hostapd_nr='2' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# /usr/local/etc/rc.d/boot-tweaks.sh | |
# | |
# Put this in /usr/local/etc/rc.d/ | |
# chown this to root | |
# chmod this to 755 | |
# Must be run as root! | |
case $1 in | |
start) |