mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 18:00:35 +00:00
Merge pull request #263 from stumyp/master
ignore loopback interface in udev rules
This commit is contained in:
commit
fad4a4e3a1
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue