File: wait-until-network-ready

package info (click to toggle)
libreswan 5.2-2.4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 81,656 kB
  • sloc: ansic: 129,988; sh: 32,018; xml: 20,646; python: 10,303; makefile: 3,022; javascript: 1,506; sed: 574; yacc: 511; perl: 264; awk: 52
file content (11 lines) | stat: -rwxr-xr-x 209 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# Wait until the network has started - based on default route

count=20
until [ $count -eq 0 ] || [ -n "`ip route list | grep default`" ]  >/dev/null 2>&1
do
	count=`expr $count - 1`
	sleep 1
done