3 if [ -f /fs/config/system ]
10 if [ ! -f /fs/config/dropbear.tar ]
14 tar cf /fs/config/dropbear.tar /etc/dropbear
18 if [ -f /fs/config/ntp.conf ]
20 setserial /dev/ttyS0 low_latency
21 ntpd -c /fs/config/ntp.conf -x -g -N
24 if [ -d /var/www/data ]
27 mknod /var/www/data/reboot p
28 chmod 644 /var/www/data/reboot
29 (echo "Rebooting..." > /var/www/data/reboot; reboot)&
31 mknod /var/www/data/restart_ssh p
32 chmod 644 /var/www/data/restart_ssh
33 (echo "SSH Restart" > /var/www/data/restart_ssh; /etc/init.d/S50dropbear restart)&
35 cldate=`date '+%d.%m.%Y'`
36 touch /var/www/data/ntp.log.$cldate
37 chmod 644 /var/www/data/ntp.log.$cldate
39 (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) &
42 mkdir /var/www/data/stats