1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Merge branch 'test' into develop

This commit is contained in:
suyuan168 2021-12-27 01:44:37 +08:00
commit e65bbb9ce7
4 changed files with 11 additions and 7 deletions

View file

@ -24,5 +24,11 @@ fi
uci -q set openmptcprouter.settings.scaling_governor='performance'
uci -q commit openmptcprouter
}
[ -n "$(ubus call system board | jsonfilter -e '@.board_name' | grep wrt)" ] && [ "$(uci -q get system.@system[0].compat_version)" == "" ] && {
uci -q batch <<-EOF >/dev/null
set system.@system[-1].compat_version='1.1'
commit system
EOF
}
exit 0

View file

@ -4,11 +4,9 @@ if [ "$(grep usbmode /etc/rc.local)" = "" ]; then
sed -i 's:exit 0::g' /etc/rc.local
cat <<-EOF >> /etc/rc.local
/bin/sleep 5
/sbin/usbmode -l
/sbin/usbmode -l 2>&1 /dev/null
/bin/sleep 3
/sbin/usbmode -s
/bin/sleep 3
/etc/init.d/getserveratboot restart
/sbin/usbmode -s 2>&1 /dev/null
exit 0
EOF
fi