File: ping6_test.sh

package info (click to toggle)
android-platform-system-extras 7.0.0%2Br33-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,136 kB
  • sloc: cpp: 28,180; ansic: 14,543; python: 5,376; sh: 2,441; java: 908; asm: 299; makefile: 19; xml: 12
file content (16 lines) | stat: -rwxr-xr-x 266 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

# Minimal network initialization.
ip link set eth0 up

# Wait for autoconf and DAD to complete.
sleep 3 &

# Block on starting DHCPv4.
udhcpc -i eth0

# If DHCPv4 took less than 3 seconds, keep waiting.
wait

# Run the test.
$(dirname $0)/ping6_test.py