|
|
|
|
@ -299,7 +299,7 @@ check_operating_system() { |
|
|
|
|
[[ $(echo "$SYS" | tr 'A-Z' 'a-z') =~ ${REGEX[int]} ]] && SYSTEM="${RELEASE[int]}" && COMPANY="${COMPANY[int]}" && [ -n "$SYSTEM" ] && break |
|
|
|
|
done |
|
|
|
|
[ -z "$SYSTEM" ] && error "$(text 6)" |
|
|
|
|
[ "$SYSTEM" = OpenWrt ] && [ $(uci show network.wan.proto | cut -d \' -f2) != 'static' ] && error "$(text 102)" |
|
|
|
|
[ "$SYSTEM" = OpenWrt ] && [[ ! $(uci show network.wan.proto 2>/dev/null | cut -d \' -f2)$(uci show network.lan.proto 2>/dev/null | cut -d \' -f2) =~ 'static' ]] && error "$(text 102)" |
|
|
|
|
|
|
|
|
|
# 先排除 EXCLUDE 里包括的特定系统,其他系统需要作大发行版本的比较 |
|
|
|
|
for ex in "${EXCLUDE[@]}"; do [[ ! $(echo "$SYS" | tr 'A-Z' 'a-z') =~ $ex ]]; done && |
|
|
|
|
|