Fixes: #11420
Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
zone_up ${interface}
fi
- # If the use configured a delay, we will honour that.
- if [ -n "${DELAY}" ]; then
- assert isinteger DELAY
- sleep ${DELAY}
-
- # If he didn't, we will try to detect is STP has brought the
- # bridge up.
- elif device_is_bridge ${interface}; then
+ # We will try to detect is STP has brought the bridge up
+ if device_is_bridge ${interface}; then
counter=60
while [ ${counter} -gt 0 ]; do
. /usr/lib/network/header-config
-HOOK_CONFIG_SETTINGS="HOOK DELAY ENABLE_IPV6 ENABLE_IPV4"
+HOOK_CONFIG_SETTINGS="HOOK ENABLE_IPV6 ENABLE_IPV4"
# Default settings.
-DELAY=0
ENABLE_IPV6="on"
ENABLE_IPV4="on"
hook_check_config_settings() {
- assert isset DELAY
- assert isinteger DELAY
assert isset ENABLE_IPV6
assert isbool ENABLE_IPV6
assert isset ENABLE_IPV4
hook_parse_cmdline() {
while [ $# -gt 0 ]; do
case "${1}" in
- --delay=*)
- DELAY="$(cli_get_val "${1}")"
- ;;
--enable-ipv6)
ENABLE_IPV6="on"
;;