Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Commit

Permalink
Fixes #7973 - removed DEFROUTE from non-booting NICs
Browse files Browse the repository at this point in the history
  • Loading branch information
lzap committed Oct 16, 2014
1 parent 4d9acda commit f8ac33d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/network-dynamic
Expand Up @@ -21,8 +21,10 @@ configure() {
bootif=$(cat /proc/cmdline | grep -io 'BOOTIF=\S*' | tail -n1 | tr A-F- a-f: | cut -d: -f2-7)
if [[ "$mac" == "$bootif" ]]; then
peerdns=yes
defroute=yes
else
peerdns=no
defroute=no
fi
echo -n $"Configuring $dev ($mac) network interface: "
script=/etc/sysconfig/network-scripts/ifcfg-$dev
Expand All @@ -32,6 +34,7 @@ NM_CONTROLLED=no
ONBOOT=yes
BOOTPROTO=dhcp
PEERDNS=$peerdns
DEFROUTE=$defroute
EONS
echo
# prevent from overwriting our configuration
Expand Down

0 comments on commit f8ac33d

Please sign in to comment.