-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·43 lines (28 loc) · 787 Bytes
/
start.sh
File metadata and controls
executable file
·43 lines (28 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh -e
syslogd -s 200 -b 4
klogd
MOD_REVISIONS=/etc/revisions
for f in `ls $MOD_REVISIONS`; do
logger -t version `cat $MOD_REVISIONS/$f`
done
#insmod /home/root/murata-driver/bcmdhd.ko
CAMCTLD_LOG=trace camctld -w &
# wait for camctld ready
until [ -f "/tmp/camctld_ready" ]; do usleep 100000 ; done
usbd &
SYSMGRD_LOG=info sysmgrd &
MODE=`cat /tmp/startup_mode`
if [ "$MODE" = "restrict" ]; then
echo "rc.local(restrict) complete"
exit 0
fi
while true; do sleep 5 ; done
NETMGRD_LOG=info netmgrd &
BLESRVD_LOG=info bled &
# wait for storage mounted
until [ -f "/tmp/mounted" ]; do usleep 100000; done
WEBAPID_LOG_LEVEL=info webapid &
until [ -e "/dev/mtp_usb" ]; do usleep 100000; done
MTPD_LOG_LEVEL=info mtpd &
echo "rc.local(normal) complete"
exit 0