Skip to content

Instantly share code, notes, and snippets.

@zhangyoufu
Created August 2, 2025 00:36
Show Gist options
  • Select an option

  • Save zhangyoufu/0363e9c3edc11b9da8919aa160d26927 to your computer and use it in GitHub Desktop.

Select an option

Save zhangyoufu/0363e9c3edc11b9da8919aa160d26927 to your computer and use it in GitHub Desktop.
/etc/init.d/mt76_tx_hang_reset chmod +x / enable / start
#!/bin/sh /etc/rc.common
START=90
STOP=01
USE_PROCD=1
start_service() {
procd_open_instance
procd_set_param command /bin/sh -c 'while :; do read < /sys/kernel/debug/ieee80211/phy1/mt76/tx_hang_reset; [ "$REPLY" -eq 0 ] || break; sleep 5; done; reboot'
procd_close_instance
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment