V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m41s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m41s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -95,8 +95,6 @@ source-directory /etc/network/interfaces.d
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
|
||||
auto ${VAR_FINAL_NIC}
|
||||
|
||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||
EOF
|
||||
chmod 0644 "${TARGET}/etc/network/interfaces"
|
||||
@@ -110,6 +108,9 @@ EOF
|
||||
insert_comments "${TARGET}/etc/network/interfaces.d/10-ipv4-dhcp"
|
||||
cat << EOF >> "${TARGET}/etc/network/interfaces.d/10-ipv4-dhcp"
|
||||
# The primary network interface: IPv4 via DHCP
|
||||
auto ${VAR_FINAL_NIC}
|
||||
allow-hotplug ${VAR_FINAL_NIC}
|
||||
|
||||
iface ${VAR_FINAL_NIC} inet dhcp
|
||||
|
||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||
@@ -123,6 +124,9 @@ EOF
|
||||
insert_comments "${TARGET}/etc/network/interfaces.d/10-ipv4-dhcp"
|
||||
cat << EOF >> "${TARGET}/etc/network/interfaces.d/10-ipv4-dhcp"
|
||||
# The primary network interface: IPv4 via DHCP
|
||||
auto ${VAR_FINAL_NIC}
|
||||
allow-hotplug ${VAR_FINAL_NIC}
|
||||
|
||||
iface ${VAR_FINAL_NIC} inet dhcp
|
||||
|
||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||
@@ -142,7 +146,7 @@ iface ${VAR_FINAL_NIC} inet static
|
||||
address ${VAR_FINAL_IPV4}
|
||||
netmask ${VAR_FINAL_IPV4_SUBNET}
|
||||
gateway ${VAR_FINAL_IPV4_GW}
|
||||
dns-nameservers ${ARY_IPV4_NS[*]}
|
||||
#dns-nameservers ${ARY_IPV4_NS[*]}
|
||||
|
||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||
EOF
|
||||
@@ -177,7 +181,7 @@ EOF
|
||||
iface ${VAR_FINAL_NIC} inet6 static
|
||||
address ${VAR_FINAL_IPV6_CIDR}
|
||||
gateway ${VAR_FINAL_IPV6_GW}
|
||||
dns-nameservers ${ARY_IPV6_NS[*]}
|
||||
#dns-nameservers ${ARY_IPV6_NS[*]}
|
||||
|
||||
# vim: number et ts=2 sw=2 sts=2 ai tw=128 ft=sh
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user