From 4372f2b3078da8387840dbe683be6b4d3f4ce33e Mon Sep 17 00:00:00 2001 From: Amin Ben Ramdhane Date: Fri, 14 Dec 2018 12:01:19 +0100 Subject: [PATCH] icwmp: do not reload icwmp if previous option 43 is empty --- icwmp/files/etc/hotplug.d/iface/90-icwmp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/icwmp/files/etc/hotplug.d/iface/90-icwmp b/icwmp/files/etc/hotplug.d/iface/90-icwmp index ce27ad5e8..c27929ddb 100644 --- a/icwmp/files/etc/hotplug.d/iface/90-icwmp +++ b/icwmp/files/etc/hotplug.d/iface/90-icwmp @@ -75,9 +75,11 @@ handle_icwmp_restart() { "$previpaddr" = "$curipaddr" -a \ "$prevgateway" = "$curgateway" -a \ "$prevsubnets" = "$cursubnets" -a \ - "$prevdnsservers" = "$curdnsservers" -a \ - "$prevopt43url" = "$curopt43url" \ - ] && exit 0 + "$prevdnsservers" = "$curdnsservers" \ + ] && { + [ "$prevopt43url" = "$curopt43url" ] && exit 0 + [ -z "$prevopt43url" ] && exit 0 + } /etc/init.d/icwmpd reload & }