summaryrefslogtreecommitdiff
path: root/package/adk-test-tools/files/test.init
blob: 773986dca58983af1da2afe547aa6988552c2326 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
#PKG adk-test-tools
#INIT 90
[[ $1 = autostart ]] || exit 0
echo "Setting time via network ..."
rdate -nv pool.ntp.org
echo "Starting test script ..."
grep shell /proc/cmdline > /dev/null 2&>1
if [ $? -eq 0 ];then
	exit 0
fi
if [ -x /run.sh ];then
	/run.sh
	quit
else
	echo "no run.sh found"
	quit
fi