bump to version 0.99.18
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# ------------------------------------------------------------------------------
|
||||
# Configure network
|
||||
# This file is part of the init.sh project
|
||||
# Copyright (c) 2019-2021 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
|
||||
# Copyright (c) 2019-2022 Geoffray Levasseur <fatalerrors@geoffray-levasseur.org>
|
||||
# ------------------------------------------------------------------------------
|
||||
# This file is distributed under 3-clause BSD license.
|
||||
# The complete license agreement can be obtained at:
|
||||
@@ -111,8 +111,17 @@ precheck_conf_network()
|
||||
prnt W "No IPv4 interfaces to configure."
|
||||
else
|
||||
for iface in $IPV4_IFACES; do
|
||||
if [[ ! -d /sys/class/net/$iface ]]; then
|
||||
prnt E "The iface $iface, asked to configure, do not exist!"
|
||||
die 175
|
||||
else
|
||||
if [[ $(grep "up" /sys/class/net/$iface/operstate) ]]; then
|
||||
prnt W "The IPv4 iface $iface, is already configured, a reboot will be required."
|
||||
fi
|
||||
fi
|
||||
if [[ -z $(eval echo \$NET4_MODE_$iface) ]]; then
|
||||
prnt E "Interfaces $iface have no mode set!"
|
||||
die 175
|
||||
else
|
||||
case $(eval echo \$NET4_MODE_$iface) in
|
||||
"static")
|
||||
@@ -140,8 +149,17 @@ precheck_conf_network()
|
||||
prnt W "No IPv6 interfaces to configure."
|
||||
else
|
||||
for iface in $IPV6_IFACES; do
|
||||
if [[ ! -d /sys/class/net/$iface ]]; then
|
||||
prnt E "The iface $iface, asked to configure, do not exist!"
|
||||
die 175
|
||||
else
|
||||
if [[ $(grep "up" /sys/class/net/$iface/operstate) ]]; then
|
||||
prnt W "The IPv6 iface $iface, is already configured, a reboot will be required."
|
||||
fi
|
||||
fi
|
||||
if [[ -z $(eval echo \$NET6_MODE_$iface) ]]; then
|
||||
prnt E "Interfaces $iface have no mode set!"
|
||||
die 175
|
||||
else
|
||||
case $(eval echo \$NET6_MODE_$iface) in
|
||||
"static")
|
||||
|
||||
Reference in New Issue
Block a user