mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
ignore loopback interface in udev rules
This commit is contained in:
parent
7b90e72b69
commit
97378befce
1 changed files with 2 additions and 2 deletions
|
@ -85,7 +85,7 @@ get_secondary_ipv4s() {
|
||||||
}
|
}
|
||||||
|
|
||||||
remove_primary() {
|
remove_primary() {
|
||||||
if [ "${INTERFACE}" == "eth0" ]; then
|
if [ "${INTERFACE}" == "eth0" -o "${INTERFACE}" == "lo" ]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
rm -f ${config_file}
|
rm -f ${config_file}
|
||||||
|
@ -94,7 +94,7 @@ remove_primary() {
|
||||||
}
|
}
|
||||||
|
|
||||||
rewrite_primary() {
|
rewrite_primary() {
|
||||||
if [ "${INTERFACE}" == "eth0" ]; then
|
if [ "${INTERFACE}" == "eth0" -o "${INTERFACE}" == "lo" ]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
cidr=$(get_cidr)
|
cidr=$(get_cidr)
|
||||||
|
|
Loading…
Add table
Reference in a new issue