Skip to content

Commit

Permalink
feat(network-legacy): Unset variables first
Browse files Browse the repository at this point in the history
Signed-off-by: Georg Pfuetzenreuter <[email protected]>
  • Loading branch information
tacerus committed Apr 5, 2022
1 parent d4b75a6 commit 8f7d488
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules.d/35network-legacy/ifup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,9 @@ do_ipv6link() {

# Prepare static IP configuration based on wicked ifcfg
do_wicked_static() {
unset BOOTPROTO IPADDR PREFIXLEN NETMASK GATEWAY NETCONFIG_DNS_STATIC_SERVERS NETCONFIG_DNS_STATIC_SEARCHLIST \
autoconf ip mask

if [ -e /etc/sysconfig/network/ifcfg-${netif} ] ; then
# Pull in existing interface configuration
. /etc/sysconfig/network/ifcfg-${netif}
Expand Down

0 comments on commit 8f7d488

Please sign in to comment.