Skip to content

Instantly share code, notes, and snippets.

@oxavelar
oxavelar / openwrt-mt6000-wireless-fw-override
Last active January 3, 2025 20:13
Flint2 - MT6000 Wireless Firmware Override
# 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
(
@oxavelar
oxavelar / openwrt-aql-tweaks
Last active April 24, 2025 14:04
Linux AQL Adjustments
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"
@oxavelar
oxavelar / openwrt-get-and-run-crusader
Last active January 3, 2025 20:13
OpenWRT: Get and run 'crusader' from tmpfs
# 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
) &
@oxavelar
oxavelar / openwrt-ipq8074-wireless-fw-override
Last active January 3, 2025 20:12
IPQ8074 Wireless Firmware Override
# 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
(
(
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
@oxavelar
oxavelar / openwrt-dawn-settings
Last active April 24, 2025 19:48
OpenWRT DAWN Roam Controller Settings
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'
@oxavelar
oxavelar / synology-dsm-boot-tweaksboot-tweaks.sh
Last active April 16, 2025 04:45
Synology DSM DS920+ System Optimizations
#!/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)