mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
Fix omr-update
This commit is contained in:
parent
846b85069c
commit
65447216f9
1 changed files with 4 additions and 4 deletions
|
@ -2,7 +2,7 @@
|
|||
# Copyright (C) 2018 Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
|
||||
# Released under GPL 3. See LICENSE for the full terms.
|
||||
|
||||
START=9
|
||||
START=1
|
||||
STOP=98
|
||||
|
||||
boot() {
|
||||
|
@ -24,15 +24,15 @@ boot() {
|
|||
return 0
|
||||
}
|
||||
if [ "$(uci -q get openmptcprouter.settings.version)" != "${OMRVERSION}" ]; then
|
||||
uci -q set openmptcprouter.settings=settings
|
||||
uci -q set openmptcprouter.settings.version=${OMRVERSION}
|
||||
uci commit
|
||||
cd /rom/etc/uci-defaults || cd /usr/share/omr-update || return 0
|
||||
files="$(ls)"
|
||||
[ -z "$files" ] && return 0
|
||||
for file in $files; do
|
||||
( . "./$(basename $file)" )
|
||||
done
|
||||
uci -q set openmptcprouter.settings=settings
|
||||
uci -q set openmptcprouter.settings.version=${OMRVERSION}
|
||||
uci commit
|
||||
fi
|
||||
# temporary hack until configd exists
|
||||
/sbin/reload_config
|
||||
|
|
Loading…
Reference in a new issue