mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
dhcpcd.exe: Flush any configured IP addresses on shutdown
This allows us to start with a fresh interface every time dhcpcd is being restarted. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
effe5c7339
commit
a22e3c8ec7
@@ -84,6 +84,11 @@ dhcpcd_down()
|
|||||||
run_subdir ${rc_base}/init.d/networking/red.down/
|
run_subdir ${rc_base}/init.d/networking/red.down/
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Remove any configured IP address from the device
|
||||||
|
ip addr flush dev "${interface}" &>/dev/null
|
||||||
|
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
# Called when dhcpcd relies on a third party to configure an IP address
|
# Called when dhcpcd relies on a third party to configure an IP address
|
||||||
|
|||||||
Reference in New Issue
Block a user