mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add system upgrade via interface
This commit is contained in:
parent
14db6f80fb
commit
34cf70ae30
9 changed files with 619 additions and 1 deletions
20
luci-app-sysupgrade/root/etc/uci-defaults/40_luci-sysupgrade
Executable file
20
luci-app-sysupgrade/root/etc/uci-defaults/40_luci-sysupgrade
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh
|
||||
|
||||
/etc/init.d/uhttpd restart
|
||||
/etc/init.d/rpcd reload
|
||||
|
||||
[ -e /etc/config/sysupgrade ] && return 0
|
||||
|
||||
touch /etc/config/sysupgrade
|
||||
|
||||
uci -q batch <<EOF
|
||||
set sysupgrade.server=server
|
||||
set sysupgrade.server.url='https://download.openmptcprouter.com'
|
||||
set sysupgrade.client=client
|
||||
set sysupgrade.client.upgrade_packages='0'
|
||||
set sysupgrade.client.auto_search='0'
|
||||
set sysupgrade.client.advanced_mode='0'
|
||||
commit sysupgrade
|
||||
EOF
|
||||
|
||||
return 0
|
Loading…
Add table
Add a link
Reference in a new issue