diff --git a/map-agent/files/etc/hotplug.d/ethernet/map-dynamic-backhaul b/map-agent/files/etc/hotplug.d/ethernet/map-dynamic-backhaul index 37e899eeb..ab196c314 100755 --- a/map-agent/files/etc/hotplug.d/ethernet/map-dynamic-backhaul +++ b/map-agent/files/etc/hotplug.d/ethernet/map-dynamic-backhaul @@ -63,7 +63,7 @@ else [ $dhcp -eq 1 ] || exit 0 else [ -f $map_bh_file ] || exit 0 - cur_bh="$(cat $map_bh_file | jsonfilter -e @.ifname)" + cur_bh="$(jsonfilter -e @.ifname < "$map_bh_file" 2>/dev/null)" || exit 0 [ "$cur_bh" = "$PORT" ] || exit 0 fi ########################################################