aboutsummaryrefslogtreecommitdiff
path: root/scripts/naskpass.pre
blob: 8a2d25d877e8e2ce1c684665e384492e3fc04e98 (plain)
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