C
@baby-Onioneer I would add an additional line of logging like this:
logger -t MYUSBHOTPLUG "ACTION: $ACTION , DEVICENAME: $DEVICENAME , blah blah"
if [ "$ACTION" = "add" ]; then
logger -t MYUSBHOTPLUG "iPhone detected, PRODUCT=$PRODUCT, bringing up eth1"
sleep 2
ifconfig eth1 up
udhcpc -i eth1
fi
So you can see the sequence of what is going on with the script, not just inside your "if" statement. I'm not sure if it's add or bind that you want to respond to.