1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00
openmptcprouter-feeds/luci-app-netspeedtest/root/etc/uci-defaults/40_luci-app-netspeedtest
2021-09-28 22:28:43 +08:00

10 lines
305 B
Bash

#!/bin/sh
chmod 755 /etc/init.d/netspeedtest /etc/init.d/speedtest >/dev/null 2>&1
uci -q batch <<-EOF >/dev/null
delete ucitrack.@netspeedtest[-1]
add ucitrack netspeedtest
set ucitrack.@netspeedtest[-1].init=netspeedtest
commit ucitrack
EOF
rm -rf /tmp/luci-modulecache /tmp/luci-indexcache*
exit 0