mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Small fix
This commit is contained in:
parent
b7b01b9eb9
commit
ac0eca0a60
1 changed files with 2 additions and 0 deletions
|
@ -352,6 +352,8 @@ if [ "$(uci -q get openmptcprouter.$OMR_TRACKER_INTERFACE.lc)" = "" ] || [ $(($(
|
||||||
_log "Get status and settings for $OMR_TRACKER_INTERFACE..."
|
_log "Get status and settings for $OMR_TRACKER_INTERFACE..."
|
||||||
if [ "$(uci -q get openmptcprouter.settings.external_check)" != "0" ]; then
|
if [ "$(uci -q get openmptcprouter.settings.external_check)" != "0" ]; then
|
||||||
local ipaddr="$(omr-ip-intf $OMR_TRACKER_DEVICE)"
|
local ipaddr="$(omr-ip-intf $OMR_TRACKER_DEVICE)"
|
||||||
|
else
|
||||||
|
uci -q set openmptcprouter.$OMR_TRACKER_INTERFACE.lc=$(date +"%s")
|
||||||
fi
|
fi
|
||||||
[ -n "$ipaddr" ] && {
|
[ -n "$ipaddr" ] && {
|
||||||
# Check if we can get a IPv6 address, if yes enable RA else disable
|
# Check if we can get a IPv6 address, if yes enable RA else disable
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue