Merge pull request #76 from FELDSAM-INC/feldsam/opensuse-fix-ipv6

Fixed IPv6 network on OpenSuse 42.2
pull/89/head
Vlastimil Holer 8 years ago committed by GitHub
commit 55c6a1b7a5

@ -118,15 +118,23 @@ EOT
} }
gen_iface6_conf() { gen_iface6_conf() {
if [ "$CONFIG_PATH" = "/etc/sysconfig/network" ]; then
echo "IPADDR_0=$IP6/${IP6_PREFIX_LENGTH:-64}"
else
cat <<EOT cat <<EOT
IPV6INIT=yes IPV6INIT=yes
IPV6ADDR=$IP6/${IP6_PREFIX_LENGTH:-64} IPV6ADDR=$IP6/${IP6_PREFIX_LENGTH:-64}
IPV6_AUTOCONF=no IPV6_AUTOCONF=no
EOT EOT
fi
if [ -n "$IP6_ULA" ]; then if [ -n "$IP6_ULA" ]; then
if [ "$CONFIG_PATH" = "/etc/sysconfig/network" ]; then
echo "IPADDR_1=$IP6_ULA/64"
else
echo "IPV6ADDR_SECONDARIES=$IP6_ULA/64" echo "IPV6ADDR_SECONDARIES=$IP6_ULA/64"
fi fi
fi
if [ -n "$GATEWAY6" ]; then if [ -n "$GATEWAY6" ]; then
if [ "$CONFIG_PATH" = "/etc/sysconfig/network" ]; then if [ "$CONFIG_PATH" = "/etc/sysconfig/network" ]; then

Loading…
Cancel
Save