From 2caf08d5dd9d82087c16390a34e8ab169be75369 Mon Sep 17 00:00:00 2001 From: "root@culturestrings" Date: Wed, 1 Jul 2020 08:57:05 +0000 Subject: networking: introduced $vpn_net4, $vpn_ipv5, $host_ipv4, $host_ipv6. --- public/fs/etc/sysconfig/network/ifcfg-eth0 | 6 ------ public/fs/etc/sysconfig/network/ifcfg-eth0-conf.sh | 12 ++++++++++++ public/fs/etc/sysconfig/network/ifcfg-eth0.in | 6 ++++++ 3 files changed, 18 insertions(+), 6 deletions(-) delete mode 100644 public/fs/etc/sysconfig/network/ifcfg-eth0 create mode 100755 public/fs/etc/sysconfig/network/ifcfg-eth0-conf.sh create mode 100644 public/fs/etc/sysconfig/network/ifcfg-eth0.in (limited to 'public/fs/etc/sysconfig') diff --git a/public/fs/etc/sysconfig/network/ifcfg-eth0 b/public/fs/etc/sysconfig/network/ifcfg-eth0 deleted file mode 100644 index c2fc421..0000000 --- a/public/fs/etc/sysconfig/network/ifcfg-eth0 +++ /dev/null @@ -1,6 +0,0 @@ -BOOTPROTO='dhcp' -STARTMODE='auto' - -IPADDR_0='2a01:4f9:2b:20f0::2/65' -LABEL_0='ipv6' -NETMASK_0='' diff --git a/public/fs/etc/sysconfig/network/ifcfg-eth0-conf.sh b/public/fs/etc/sysconfig/network/ifcfg-eth0-conf.sh new file mode 100755 index 0000000..d116219 --- /dev/null +++ b/public/fs/etc/sysconfig/network/ifcfg-eth0-conf.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +set -eu + +cfg_script="$0" +cfg_srcdir=$(cd -- "${cfg_script%/*}/" ; pwd -P) + +source /root/config/private/config/server.ports + +sed -e 's/@host_ipv4@/'${host_ipv4}'/g' \ + -e 's/@host_ipv6@/'${host_ipv6}'/g' \ + "${cfg_srcdir}/ifcfg-eth0.in" diff --git a/public/fs/etc/sysconfig/network/ifcfg-eth0.in b/public/fs/etc/sysconfig/network/ifcfg-eth0.in new file mode 100644 index 0000000..8060f46 --- /dev/null +++ b/public/fs/etc/sysconfig/network/ifcfg-eth0.in @@ -0,0 +1,6 @@ +BOOTPROTO='dhcp' +STARTMODE='auto' + +IPADDR_0='@host_ipv6@::2/65' +LABEL_0='ipv6' +NETMASK_0='' -- cgit v1.2.3