diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2014-07-21 19:10:52 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2014-07-21 19:10:52 +0800 |
commit | 5ff325556c0c03498f848ec60bc73f6d7e7468d2 (patch) | |
tree | 4c382948e816fea6948f208895d9f054b8fbe23b | |
parent | babae51b544702b59f8da731d6d5f43d2f61b6d1 (diff) | |
download | fvp-armv8-5ff325556c0c03498f848ec60bc73f6d7e7468d2.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: I6aa56d61efdd1c9b84b4e53e4afb625febc64665
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rwxr-xr-x | init.fvpbase.rc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/init.fvpbase.rc b/init.fvpbase.rc index fde5c1c..87b1f09 100755 --- a/init.fvpbase.rc +++ b/init.fvpbase.rc @@ -86,3 +86,12 @@ service dhcpcd_eth0 /system/bin/dhcpcd -dABKL eth0 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 |