Skip to content

Instantly share code, notes, and snippets.

@rusxakep
Forked from yleshchuk/init-start
Created July 3, 2021 11:35
Show Gist options
  • Save rusxakep/ddef0d98db8050e8287d1a31412f7144 to your computer and use it in GitHub Desktop.
Save rusxakep/ddef0d98db8050e8287d1a31412f7144 to your computer and use it in GitHub Desktop.
Change country to unlock channels, increase TX-power
#!/bin/sh
# https://github.com/RMerl/asuswrt-merlin.ng/wiki/User-scripts
# Tested on EU-model, channels changes work, however increasing TX-power probably not.
nvram set 0:ccode=US
nvram set 0:regrev=0
nvram set 1:ccode=US
nvram set 1:regrev=0
nvram set wl0_country_code=US
nvram set wl0_country_rev=0
nvram set wl0_reg_mode=off
nvram set wl1_chlist="36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140 149 153 157 161"
nvram set wl1_country_code=US
nvram set wl1_country_rev=0
nvram set wl1_reg_mode=off
nvram set 0:maxp2ga0=114
nvram set 0:maxp2ga1=114
nvram set 1:maxp5gb0a0=114
nvram set 1:maxp5gb0a1=114
nvram set 1:maxp5gb0a2=114
nvram set 1:maxp5gb0a3=114
nvram set 1:maxp5gb1a0=114
nvram set 1:maxp5gb1a1=114
nvram set 1:maxp5gb1a2=114
nvram set 1:maxp5gb1a3=114
nvram set 1:maxp5gb2a0=114
nvram set 1:maxp5gb2a1=114
nvram set 1:maxp5gb2a2=114
nvram set 1:maxp5gb2a3=114
nvram set 1:maxp5gb3a0=114
nvram set 1:maxp5gb3a1=114
nvram set 1:maxp5gb3a2=114
nvram set 1:maxp5gb3a3=114
nvram set 1:maxp5gb4a0=114
nvram set 1:maxp5gb4a1=114
nvram set 1:maxp5gb4a2=114
nvram set 1:maxp5gb4a3=114
nvram set wl0_txpower=500
nvram set wl1_txpower=500
nvram set wl_txpower=500
nvram commit
#!/bin/sh
# if need to set channel to custom one :
nvram set wl0_chanspec=1
nvram set wl1_chanspec=153/80
nvram commit
service restart_wireless
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment