1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix IP reset

This commit is contained in:
Ycarus 2018-06-15 20:52:54 +02:00
parent 6a2156afd3
commit 65f9e51e31
3 changed files with 11 additions and 5 deletions

View file

@ -8,15 +8,17 @@ boot() {
. /lib/functions/system.sh
cd /etc/uci-defaults || return 0
source /etc/os-release
files="$(ls)"
[ -n "$files" ] && {
mkdir -p /usr/share/omr-update
if [ "$(grep rom /etc/mtab)" = "" ]; then
cp /etc/uci-defaults/* /usr/share/omr-update
fi
uci -q set openmptcprouter.settings.version=${VERSION}
return 0
}
source /etc/os-release
if [ "$(uci -q get openmptcprouter.settings.version)" != "${VERSION}" ]; then
cd /rom/etc/uci-defaults || cd /usr/share/omr-update || return 0
files="$(ls)"