I've been trying to get my own DDNS solution running on Merlin, but have so far not been successful.
When udhcpc recieves a lease, it runs /tmp/udhcpc as "a script" that does some magic. Unfortunately, this "script" isn't a script, it's a binary, and I don't know if the source is available.
Would it be possible to replace /tmp/udhcpc with a wrapper script that can execute a script in /jffs/scripts when a new lease is obtained?
(Or, change udhcpc parameters, the -s parameter, to point to a separate script that later runs the /tmp/udhcpc binary)
Eg. something like this:
Or is there some hook elsewhere that I'm missing?
When udhcpc recieves a lease, it runs /tmp/udhcpc as "a script" that does some magic. Unfortunately, this "script" isn't a script, it's a binary, and I don't know if the source is available.
Would it be possible to replace /tmp/udhcpc with a wrapper script that can execute a script in /jffs/scripts when a new lease is obtained?
(Or, change udhcpc parameters, the -s parameter, to point to a separate script that later runs the /tmp/udhcpc binary)
Eg. something like this:
Code:
#!/bin/sh
if [[ -x "/jffs/scripts/udhcpc-lease" ]]
then
/jffs/scripts/udhcpc-lease
fi
/tmp/udhcpc $*
Or is there some hook elsewhere that I'm missing?