ifcfg/write-ifcfg.sh: do not source net.*.override, if it doesn't exist

master
Harald Hoyer 2011-05-10 10:55:48 +02:00
parent ba902275d5
commit da5f8554a4
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ for netif in $IFACES ; do
else else
echo "BOOTPROTO=none" echo "BOOTPROTO=none"
# If we've booted with static ip= lines, the override file is there # If we've booted with static ip= lines, the override file is there
. /tmp/net.$netif.override [ -e /tmp/net.$netif.override ] && . /tmp/net.$netif.override
echo "IPADDR=$ip" echo "IPADDR=$ip"
echo "NETMASK=$mask" echo "NETMASK=$mask"
[ -n "$gw" ] && echo "GATEWAY=$gw" [ -n "$gw" ] && echo "GATEWAY=$gw"