1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-15 03:51:51 +00:00
openmptcprouter-feeds/openmptcprouter/files/etc/init.d/sysupgrade

21 lines
463 B
Text
Raw Normal View History

2021-01-16 07:15:54 +00:00
#!/bin/sh /etc/rc.common
2024-09-10 17:42:32 +00:00
# Copyright (C) 2020-2024 Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
2021-01-16 07:15:54 +00:00
# Released under GPL 3. See LICENSE for the full terms.
{
2021-05-21 06:52:40 +00:00
START=99
2021-01-16 07:15:54 +00:00
STOP=10
USE_PROCD=1
}
start_service()
{
if [ -f /etc/backup/installed_packages.txt ]; then
2024-09-10 17:42:32 +00:00
opkg -V0 update >/dev/null 2>&1
if [ -z "$(grep '\toverlay' /etc/backup/installed_packages.txt | cut -f1 | xargs -r opkg -V0 install)" ]; then
2021-01-16 07:15:54 +00:00
rm /etc/backup/installed_packages.txt
fi
fi
}