summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc/init.d/done
blob: 04d1b5df1c62fdb85437dd963043da5371c75fd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org

START=95
boot() {
	[ -d /tmp/root ] && {
		cat /proc/cpuinfo | grep 7623
		if [ "$?" == "0" ]; then
			mount_root2 done;
		else
			mount_root done;
		fi
	}
	block mount

	# process user commands
	[ -f /etc/rc.local ] && {
		sh /etc/rc.local
	}

	# set leds to normal state
	. /etc/diag.sh
	set_state done
}