脚本主要来自Greasy Fork,可到网站上面去搜索看有没自己主要的。
操作参考自OpenWrt论坛的一张帖子,未实际验证。
方法一 form markusl
-
从国际官网获取Global版uboot固件,并在路由器中进行刷机更新。
-
完成此操作后,登录到刷机完的路由器并重新设置密码。
如果您在路由器UI中看到CN,如下所示,则需要按照以下步骤
- 通过 SSH 在终端中运行以下命令:
echo US > /tmp/country_code
mount --bind /tmp/country_code /proc/gl-hw-info/country_code
cat /proc/gl-hw-info/country_code
刷新 UI,路由器现在应显示为Global,直到下次重新启动。
- 要使其永久化,请执行以下操作:
cat /etc/rc.local
# Check that you haven't already added the below, then proceed
sed -i '1i\echo US > /tmp/country_code\nmount --bind /tmp/country_code /proc/gl-hw-info/country_code' /etc/rc.local
cat /etc/rc.local
# Verify that the lines were added, at next boot the system will still be the global version
-
尝试重新启动并验证您是否拥有了Global版版本!
-
固件更新后,您可能需要重复以上操作。
方法二 form shi05275
进入SSH,执行以下操作:
echo 0 > /sys/block/mmcblk0boot1/force_ro
echo "US" |dd of=/dev/mmcblk0boot1 bs=1 seek=136
sync
reboot