mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix omr-update
This commit is contained in:
parent
8d1630c449
commit
d949abf0dc
1 changed files with 5 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2006-2011 OpenWrt.org
|
||||
|
||||
START=9
|
||||
START=09
|
||||
STOP=98
|
||||
|
||||
boot() {
|
||||
|
@ -11,12 +11,14 @@ boot() {
|
|||
files="$(ls)"
|
||||
[ -n "$files" ] && {
|
||||
mkdir /usr/share/omr-update
|
||||
if [ "$(grep rom /etc/mtab)" = "" ]; then
|
||||
cp /etc/uci-defaults/* /usr/share/omr-update
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
source /etc/os-release
|
||||
if [ "$(uci -q get openmptcprouter.settings.version)" != "${VERSION}" ]; then
|
||||
cd /usr/share/omr-update || return 0
|
||||
cd /rom/etc/uci-defaults || cd /usr/share/omr-update || return 0
|
||||
files="$(ls)"
|
||||
[ -z "$files" ] && return 0
|
||||
for file in $files; do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue