mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-25 10:22:59 +02:00
70-dhcpdd.exe: don't run red.down scripts at "PREINIT"
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
@@ -78,9 +78,11 @@ dhcpcd_down()
|
||||
|
||||
# Only if RED_TYPE=DHCP update /var/ipfire/red
|
||||
if [ "$RED_TYPE" == "DHCP" ]; then
|
||||
logger -p local0.info -t dhcpcd.exe[$$] "${interface} has been brought down"
|
||||
rm -f /var/ipfire/red/active
|
||||
run_subdir ${rc_base}/init.d/networking/red.down/
|
||||
if [ ! $reason == "PREINIT" ]; then
|
||||
logger -p local0.info -t dhcpcd.exe[$$] "${interface} has been brought down"
|
||||
run_subdir ${rc_base}/init.d/networking/red.down/
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user