update scripts
[wyse_ntpd.git] / src / buildroot-2013.05 / custom / filesystem / etc / init.d / S99final_sequence
1 #!/bin/sh
2
3 if [ -f /fs/config/system ]
4 then
5         . /fs/config/system
6 else
7         mkdir -p /fs/config/
8 fi
9
10 mkdir /var/www/data/stats
11 chmod 777 /var/www/data/stats
12
13 if [ ! -f /fs/config/dropbear.tar ]
14 then
15         RD=`pwd`
16         cd /
17         tar cf /fs/config/dropbear.tar /etc/dropbear
18         cd $RD
19 fi
20
21 if [ -f /fs/config/ntp.conf ]
22 then
23         setserial /dev/ttyS0 low_latency
24         ntpd -c /fs/config/ntp.conf -x -g -N
25 fi
26
27 if [ -d /var/www/data ]
28 then
29         /opt/reboot_daemon.sh > /dev/null 2>&1 &
30         /opt/restart_ssh_daemon.sh > /dev/null 2>&1 &
31         /opt/stats_daemon.sh > /dev/null 2>&1 &
32 fi
33