summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYongqin Liu <yongqin.liu@linaro.org>2014-07-21 19:17:01 +0800
committerYongqin Liu <yongqin.liu@linaro.org>2014-07-21 19:17:01 +0800
commitb100250f96c71ab748782d6f6aea6b59cd2f6d27 (patch)
tree4e97feaa11a2aa04196e68391bc97c3e34d90ce9
parent676510fb064204afe3b43d35f230f6259511a267 (diff)
downloadjuno-b100250f96c71ab748782d6f6aea6b59cd2f6d27.tar.gz
init.fvpbase.rc: set up dns when booted up
set eth0 as the default dns interface and 8.8.8.8 as the nameserver for eth0 interface when the system booted up Change-Id: If329fdfe11e5fc4c297b4541f3d4ce13382199c2 Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r--init.juno.rc9
1 files changed, 9 insertions, 0 deletions
diff --git a/init.juno.rc b/init.juno.rc
index b6bc20e..a5bbc12 100644
--- a/init.juno.rc
+++ b/init.juno.rc
@@ -98,3 +98,12 @@ service clock-init /system/bin/hwclock
service sdcard /system/bin/sdcard -u 1023 -g 1023 -l /data/media /mnt/shell/emulated
class late_start
+
+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
+ disabled
+ oneshot