summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2014-09-26 14:36:38 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2014-10-27 17:01:55 +0800
commit7a0e2f669c1a6d0c9b8bda370cdec5b4cb4f1e30 (patch)
treef3d9df2eb61bea103dc238ab2efac912a678fe77
parent6ed3d7f584fe84e0a043c017cef965fbe67d7f31 (diff)
downloadfvp-armv8-7a0e2f669c1a6d0c9b8bda370cdec5b4cb4f1e30.tar.gz
device.mk and init.juno.rc: use ndc to set dns server
use "ndc resolver" command to make dns work on juno device for eth0 interface, instead of using the "svc netd" command we added ourselves. Change-Id: I64a6054668067620c5b5d0aa97cf7d78da4a5699 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r--device.mk3
-rwxr-xr-xinit.fvpbase.rc4
2 files changed, 4 insertions, 3 deletions
diff --git a/device.mk b/device.mk
index 0af4338..0826a9d 100644
--- a/device.mk
+++ b/device.mk
@@ -61,6 +61,9 @@ PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml)
+PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\
+ device/linaro/common/eth0_dns.sh:system/bin/eth0_dns.sh)
+
# Copy media codecs config file
PRODUCT_COPY_FILES += device/linaro/common/media_codecs.xml:system/etc/media_codecs.xml
diff --git a/init.fvpbase.rc b/init.fvpbase.rc
index c6fe4f6..e06b3ed 100755
--- a/init.fvpbase.rc
+++ b/init.fvpbase.rc
@@ -93,9 +93,7 @@ service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emul
on property:sys.boot_completed=1
start dns_eth0
-service dns_eth0 /system/bin/sh /system/bin/svc netd setdefaultifdns eth0 8.8.8.8
- user root
- group root
+service dns_eth0 /system/bin/sh /system/bin/eth0_dns.sh
disabled
oneshot
seclabel u:r:shell:s0