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/init.d/sysupgrade
Executable file
20
luci-app-sysupgrade/root/etc/init.d/sysupgrade
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2020 Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
|
||||
# Released under GPL 3. See LICENSE for the full terms.
|
||||
|
||||
{
|
||||
START=90
|
||||
STOP=10
|
||||
USE_PROCD=1
|
||||
}
|
||||
|
||||
start_service()
|
||||
{
|
||||
if [ -f /etc/backup/installed_packages.txt ]; then
|
||||
if [ "$(opkg -V0 update)" = "" ]; then
|
||||
grep "\toverlay" /etc/backup/installed_packages.txt | cut -f1 | xargs -r opkg -V0 install
|
||||
rm /etc/backup/installed_packages.txt
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue