1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#!/bin/sh set -e . /etc/naskpass.conf echo -n 'waiting for ip ...' CURWAIT=$MAXWAIT if [ -x /sbin/dropbear ]; then while ! $(ifconfig -a | grep -oE 'inet addr:'); do echo -n '.' if [ $CURWAIT -le 0 ]; then echo ' got no ip, continue anyway.' break fi expr $CURWAIT - 1 done fi dmesg -D