Clean /etc/sysconfig/network/routes on SuSE

pull/76/head
Vlastimil Holer 8 years ago
parent ebbb7ffae0
commit df6afb0998
No known key found for this signature in database
GPG Key ID: EB549BADEFD07C53

@ -84,6 +84,7 @@ if [ -d /etc/sysconfig/network ]; then
# Prepare network files
rm -f /etc/sysconfig/network/ifcfg-eth*
rm -f /etc/sysconfig/network/ifroute-eth*
rm -f /etc/sysconfig/network/routes
sed -i '/^NETCONFIG_DNS_STATIC_SERVERS=/ s/=.*$/=""/' /etc/sysconfig/network/config
sed -i '/^NETCONFIG_DNS_STATIC_SEARCHLIST=/ s/=.*$/=""/' /etc/sysconfig/network/config
fi

Loading…
Cancel
Save