I am not sure if my iscsi config is general for all ubuntus, but at least I replaced
if [ "$IFACE" = lo ]; then exit 0 fi
with
if iscsiadm -m iface --op=show | grep -q ",$(ip link show $IFACE 2>/dev/null | awk '$1=="link/ether" {print $2}')," ; then
I am not sure if my iscsi config is general for all ubuntus, but at least I replaced
if [ "$IFACE" = lo ]; then
exit 0
fi
with
if iscsiadm -m iface --op=show | grep -q ",$(ip link show $IFACE 2>/dev/null | awk '$1=="link/ether" {print $2}')," ; then