3 if [ -f /fs/config/system ]
10 mkdir /var/www/data/stats
11 chmod 777 /var/www/data/stats
13 if [ ! -f /fs/config/dropbear.tar ]
17 tar cf /fs/config/dropbear.tar /etc/dropbear
21 if [ -f /fs/config/ntp.conf ]
23 setserial /dev/ttyS0 low_latency
24 ntpd -c /fs/config/ntp.conf -x -g -N
27 if [ -d /var/www/data ]
30 mknod /var/www/data/reboot p
31 chmod 644 /var/www/data/reboot
32 (echo "Rebooting..." > /var/www/data/reboot; reboot)&
34 mknod /var/www/data/restart_ssh p
35 chmod 644 /var/www/data/restart_ssh
36 (echo "SSH Restart" > /var/www/data/restart_ssh; /etc/init.d/S50dropbear restart)&
38 cldate=`date '+%d.%m.%Y'`
39 touch /var/www/data/ntp.log.$cldate
40 chmod 644 /var/www/data/ntp.log.$cldate
42 (sleep 30; while(true); do date '+%s' >> /var/www/data/ntp.log.$cldate; ntpq -c lpe -n |grep "127.127.20" >> /var/www/data/ntp.log.$cldate; sleep 30; done) &