Hi,

I have a problem in hotplug. Here is my hotplug script placed in "/etc/hotplug.d/iface" directory.

[ ifup = "$ACTION" ] && {
    [ ppp0 = "$DEVICE" ] && {
        logger -t button-hotplug Device: $DEVICE / Action: $ACTION
        /sbin/route add -net 0.0.0.0/0 dev ppp0
    }
}

Hotplug is running the above script as I can see this in log

Jul  4 03:56:06 OpenWrt user.notice button-hotplug: Device: ppp0 / Action: ifup

But, the default route is not being set. Any suggestions?

Thanks,

Venkat