fix compile problem brcm-2.6
[openwrt.git] / openwrt / package / ez-ipupdate / files / ez-ipupdate.hotplug
index 3f27c14..56a054b 100644 (file)
@@ -1 +1,6 @@
-[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && /usr/sbin/ez-ipupdate -c /etc/ez-ipupdate.conf &
+PGM=ez-ipupdate
+[ "$ACTION" = "ifup" -a "$INTERFACE" = "wan" ] && {
+       [ -e /etc/$PGM.conf ] && {
+               [ -n $(grep "user=" /etc/$PGM.conf | cut -d= -f2 | cut -d: -f1) ] && [ -n $(grep "user=" /etc/$PGM.conf | cut -d= -f2 | cut -d: -f2) ] && /usr/sbin/$PGM -c /etc/$PGM.conf &
+       }
+}
This page took 0.019918 seconds and 4 git commands to generate.