diff --git a/src/etc/one-context.d/loc-10-network##apk.one b/src/etc/one-context.d/loc-10-network##apk.one index afba08b..e7b3b64 100755 --- a/src/etc/one-context.d/loc-10-network##apk.one +++ b/src/etc/one-context.d/loc-10-network##apk.one @@ -273,10 +273,13 @@ EOT EXTERNAL=$(get_iface_var "EXTERNAL") EXTERNAL=${EXTERNAL^^} + DETACH=$(get_iface_var "DETACH") - if [ -z "${EXTERNAL}" ] || [ $EXTERNAL = "NO" ]; then - [ -n "${IP}" ] && gen_alias_conf - [ -n "${IP6}" ] && gen_alias6_conf + if [ -z "${DETACH}" ]; then + if [ -z "${EXTERNAL}" ] || [ $EXTERNAL = "NO" ]; then + [ -n "${IP}" ] && gen_alias_conf + [ -n "${IP6}" ] && gen_alias6_conf + fi fi done done diff --git a/src/etc/one-context.d/loc-10-network##bsd.one b/src/etc/one-context.d/loc-10-network##bsd.one index f31c6d9..d2e6527 100755 --- a/src/etc/one-context.d/loc-10-network##bsd.one +++ b/src/etc/one-context.d/loc-10-network##bsd.one @@ -243,13 +243,16 @@ gen_network_configuration() EXTERNAL=$(get_iface_var "EXTERNAL") EXTERNAL=${EXTERNAL^^} + DETACH=$(get_iface_var "DETACH") - if [ -z "${EXTERNAL}" ] || [ "$EXTERNAL" = "NO" ]; then - [ -n "${IP}" ] && gen_alias_conf + if [ -z "${DETACH}" ]; then + if [ -z "${EXTERNAL}" ] || [ "$EXTERNAL" = "NO" ]; then + [ -n "${IP}" ] && gen_alias_conf - if [ -n "${IP6}" ]; then - gen_alias6_conf - HAS_IP6=${IP6} + if [ -n "${IP6}" ]; then + gen_alias6_conf + HAS_IP6=${IP6} + fi fi fi done diff --git a/src/etc/one-context.d/loc-10-network##deb.one b/src/etc/one-context.d/loc-10-network##deb.one index 0940e63..a23fbda 100755 --- a/src/etc/one-context.d/loc-10-network##deb.one +++ b/src/etc/one-context.d/loc-10-network##deb.one @@ -299,10 +299,13 @@ EOT EXTERNAL=$(get_iface_var "EXTERNAL") EXTERNAL=${EXTERNAL^^} + DETACH=$(get_iface_var "DETACH") - if [ -z "${EXTERNAL}" ] || [ $EXTERNAL = "NO" ]; then - [ -n "${IP}" ] && gen_alias_conf - [ -n "${IP6}" ] && gen_alias6_conf + if [ -z "${DETACH}" ]; then + if [ -z "${EXTERNAL}" ] || [ $EXTERNAL = "NO" ]; then + [ -n "${IP}" ] && gen_alias_conf + [ -n "${IP6}" ] && gen_alias6_conf + fi fi done done diff --git a/src/etc/one-context.d/loc-10-network##rpm.one b/src/etc/one-context.d/loc-10-network##rpm.one index d44d8a4..9867161 100755 --- a/src/etc/one-context.d/loc-10-network##rpm.one +++ b/src/etc/one-context.d/loc-10-network##rpm.one @@ -273,13 +273,16 @@ EOT EXTERNAL=$(get_iface_var "EXTERNAL") EXTERNAL=${EXTERNAL^^} + DETACH=$(get_iface_var "DETACH") - if [ -z "${EXTERNAL}" ] || [ "$EXTERNAL" = "NO" ]; then - [ -n "${IP}" ] && gen_alias_conf - [ -n "${IP6}" ] && gen_alias6_conf + if [ -z "${DETACH}" ]; then + if [ -z "${EXTERNAL}" ] || [ "$EXTERNAL" = "NO" ]; then + [ -n "${IP}" ] && gen_alias_conf + [ -n "${IP6}" ] && gen_alias6_conf - if [ -n "${IP}${IP6}" ]; then - ALIAS_NUM=$((ALIAS_NUM + 1)) + if [ -n "${IP}${IP6}" ]; then + ALIAS_NUM=$((ALIAS_NUM + 1)) + fi fi fi done