The UCI config feature broke using ez-ipupdate with a config file, in
that the interface name is no longer provided as a command line
argument (-i). The following corrects for this and should work for
both UCI and conffile cases:
--- /tmp/30-ez-ipupdate Thu Oct 9 23:07:47 2008
+++ /etc/hotplug.d/iface/30-ez-ipupdate Thu Oct 9 23:05:00 2008
@@ -49,12 +49,11 @@
host=$hostname
cache-file=$cache
pid-file=$pidfile
-interface=$dev
quiet
EOF
}
- $COMMAND -d -c $config 2>&1 | logger -t
$NAME &
+ $COMMAND -d -i $dev -c $config 2>&1 |
logger -t $NAME &
}
;;
*)
Incidentally, the UCI patch also changed ez-ipupdate's behaviour to
always run as a daemon (i.e. added '-d'). Was this intentional? Would
it be better to leave that to the user's configuration? (add a
'daemon' UCI option).
Rgds,
Ben
_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel