From 60d94fb59f143106dabcb92ca3d7bac0c76d07e7 Mon Sep 17 00:00:00 2001 From: Yongqin Liu Date: Fri, 28 Nov 2014 02:15:47 +0800 Subject: add test for ndc Signed-off-by: Yongqin Liu --- android/ndc-test.yaml | 6 ++---- android/scripts/ndc_test.sh | 5 +++++ 2 files changed, 7 insertions(+), 4 deletions(-) create mode 100755 android/scripts/ndc_test.sh diff --git a/android/ndc-test.yaml b/android/ndc-test.yaml index f23b11d..c98c0e4 100644 --- a/android/ndc-test.yaml +++ b/android/ndc-test.yaml @@ -16,7 +16,5 @@ params: run: steps: - - logcat -d - - logcat -c - - /system/bin/dhcpcd -dABKL eth0 - - sleep 3600 + - ./android/scripts/ndc_test.sh + - logcat diff --git a/android/scripts/ndc_test.sh b/android/scripts/ndc_test.sh new file mode 100755 index 0000000..a89e853 --- /dev/null +++ b/android/scripts/ndc_test.sh @@ -0,0 +1,5 @@ +#!/system/bin/sh + +/system/bin/dhcpcd -dABKL eth0 +/system/bin/ndc network default set eth0 +/system/bin/ndc resolver setnetdns eth0 "" 8.8.8.8 -- cgit v1.2.3