busybox: Support option 119 in udhcpc default script.
PATCH 1/1 busybox: Support option 119 in udhcpc default script.
* package/busybox/udhcpc.script: Use $search instead of $domain if that is defined.
Note that for this to work, not only has CONFIG_FEATURE_UDHCP_RFC3397 be enabled in Busybox' configuration but also the option has to be requested using the "-O search" command-line option (one can set it in CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS, for instance).
--- package/busybox/udhcpc.script | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
package/busybox/udhcpc.script +9 -1
@@ -56,7 +56,15 @@ case "$1" in cat $TMPFILE > $RESOLV_CONF rm -f $TMPFILE - [ -n "$domain" ] && echo "search $domain # $interface" >> $RESOLV_CONF + if [ -n "$search" ]; then + search_list=$search + elif [ -n "$domain" ]; then + search_list=$domain + fi + + [ -n "$search_list" ] && + echo "search $search_list # $interface" >> $RESOLV_CONF + for i in $dns ; do echo adding dns $i echo "nameserver $i # $interface" >> $RESOLV_CONF
Signature · 1 line
2.5.0
PATCH 1/1 busybox: Support option 119 in udhcpc default script.
Quoted 20 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Ignacy" == Ignacy Gaw?dzki <[email protected]> writes:
* package/busybox/udhcpc.script: Use $search instead of $domain if that is defined.
Note that for this to work, not only has
CONFIG_FEATURE_UDHCP_RFC3397be enabled in Busybox' configuration but also the option has to be requested using the "-O search" command-line option (one can set it inCONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS, for instance).Signed-off-by Ignacy Gaw?dzki <[email protected]>--- package/busybox/udhcpc.script | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)package/busybox/udhcpc.script +0
-0
package/busybox/udhcpc.script case "$1" in · line 63
Quoted 9 lines
package/busybox/udhcpc.script +5
-1@@ -56,7 +56,15 @@ case "$1" in cat $TMPFILE > $RESOLV_CONF rm -f $TMPFILE - [ -n "$domain" ] && echo "search $domain # $interface" >> $RESOLV_CONF + if [ -n "$search" ]; then + search_list=$search + elif [ -n "$domain" ]; then + search_list=$domain + fi
Committed after adding a comment with reference to rfc3359 / option 119 for clarity, thanks!
Signature · 1 line
Bye, Peter Korsgaard