mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
dhcpcd.exe: Do not overwrite the default gateway when empty
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Peter Müller
parent
ccf36e9e8c
commit
4ffd18a774
@@ -63,7 +63,11 @@ dhcpcd_up()
|
|||||||
|
|
||||||
if [ $update ]; then
|
if [ $update ]; then
|
||||||
[ -e "/var/ipfire/red/active" ] || touch /var/ipfire/red/active
|
[ -e "/var/ipfire/red/active" ] || touch /var/ipfire/red/active
|
||||||
echo -n "$new_routers" > /var/ipfire/red/remote-ipaddress
|
|
||||||
|
if [ -n "${new_routers}" ]; then
|
||||||
|
echo -n "${new_routers}" > /var/ipfire/red/remote-ipaddress
|
||||||
|
fi
|
||||||
|
|
||||||
logger -p local0.info -t dhcpcd.exe[$$] "$interface has been (re)configured with IP=$new_ip_address"
|
logger -p local0.info -t dhcpcd.exe[$$] "$interface has been (re)configured with IP=$new_ip_address"
|
||||||
run_subdir ${rc_base}/init.d/networking/red.up/
|
run_subdir ${rc_base}/init.d/networking/red.up/
|
||||||
touch /var/ipfire/red/active
|
touch /var/ipfire/red/active
|
||||||
|
|||||||
Reference in New Issue
Block a user