From d92c89e02f70ee4d7542f74004ceda3c29fb2f7b Mon Sep 17 00:00:00 2001 From: kvaps Date: Thu, 4 May 2017 12:37:16 +0200 Subject: [PATCH] fix: network startup --- src/etc/one-context.d/loc-10-network##rpm.one | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) 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 84a1890..5043310 100755 --- a/src/etc/one-context.d/loc-10-network##rpm.one +++ b/src/etc/one-context.d/loc-10-network##rpm.one @@ -105,9 +105,10 @@ IPADDR=$IP EOT if [ -n "$GATEWAY" ]; then - echo "GATEWAY=$GATEWAY" - if [ -d /etc/sysconfig/network ]; then + if [ "$CONFIG_PATH" = "/etc/sysconfig/network" ]; then echo "default $GATEWAY - -" >> /etc/sysconfig/network/routes + else + echo "GATEWAY=$GATEWAY" fi fi @@ -128,9 +129,10 @@ EOT fi if [ -n "$GATEWAY6" ]; then - echo "IPV6_DEFAULTGW=$GATEWAY6" - if [ -d /etc/sysconfig/network ]; then + if [ "$CONFIG_PATH" = "/etc/sysconfig/network" ]; then echo "default $GATEWAY6 - -" >> /etc/sysconfig/network/routes + else + echo "IPV6_DEFAULTGW=$GATEWAY6" fi fi @@ -195,10 +197,15 @@ gen_network_configuration() cat <