Merge pull request #263 from stumyp/master

ignore loopback interface in udev rules
This commit is contained in:
Anders Ingemann 2015-12-19 14:01:46 +01:00
commit fad4a4e3a1

View file

@ -85,7 +85,7 @@ get_secondary_ipv4s() {
}
remove_primary() {
if [ "${INTERFACE}" == "eth0" ]; then
if [ "${INTERFACE}" == "eth0" -o "${INTERFACE}" == "lo" ]; then
return
fi
rm -f ${config_file}
@ -94,7 +94,7 @@ remove_primary() {
}
rewrite_primary() {
if [ "${INTERFACE}" == "eth0" ]; then
if [ "${INTERFACE}" == "eth0" -o "${INTERFACE}" == "lo" ]; then
return
fi
cidr=$(get_cidr)