diff options
| author | Simon Rettberg | 2014-02-15 22:12:36 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2014-02-15 22:12:36 +0100 |
| commit | bbbc2bb092fbec3f809c5e14cf4627971a535a01 (patch) | |
| tree | 76c8e5fae333f553be53f03b133a61f1c34b7745 /remote/rootfs | |
| parent | [busybox/udhcpc] Enable RFC3397 "domain search" option (and use it if present) (diff) | |
| download | tm-scripts-bbbc2bb092fbec3f809c5e14cf4627971a535a01.tar.gz tm-scripts-bbbc2bb092fbec3f809c5e14cf4627971a535a01.tar.xz tm-scripts-bbbc2bb092fbec3f809c5e14cf4627971a535a01.zip | |
[rfs-stage31] Also add domain search support to stage31 dhcp
Diffstat (limited to 'remote/rootfs')
| -rwxr-xr-x | remote/rootfs/rootfs-stage31/data/inc/udhcpc-trigger | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/remote/rootfs/rootfs-stage31/data/inc/udhcpc-trigger b/remote/rootfs/rootfs-stage31/data/inc/udhcpc-trigger index a2c45378..3d6d5725 100755 --- a/remote/rootfs/rootfs-stage31/data/inc/udhcpc-trigger +++ b/remote/rootfs/rootfs-stage31/data/inc/udhcpc-trigger @@ -61,7 +61,11 @@ if [ -z "$domain" ]; then fi if [ -n "$domain" ]; then echo "domain $domain" >> "/etc/resolv.conf" - echo "search $domain" >> "/etc/resolv.conf" # TODO: patch busybox +fi +if [ -n "$search" ]; then + echo "search $search" >> "/etc/resolv.conf" +elif [ -n "$domain" ]; then + echo "search $domain" >> "/etc/resolv.conf" fi |
