mkdir -p /fs/config/
fi
+mkdir /var/www/data/stats
+chmod 777 /var/www/data/stats
+
if [ ! -f /fs/config/dropbear.tar ]
then
RD=`pwd`
ntpd -c /fs/config/ntp.conf -x -g -N
fi
-if [ -f /var/www/data ]
+if [ -d /var/www/data ]
then
-
- mknod /var/www/data/reboot p
- (cat > /var/www/data/reboot; reboot)&
-
- cldate=`date '+%d.%m.%Y'`
- touch /var/www/data/ntp.log.$cldate
-
- (while(true); do ntpq -c lpe -n >> /var/www/data/ntp.log.*; sleep 30; done)
+ /opt/reboot_daemon.sh > /dev/null 2>&1 &
+ /opt/restart_ssh_daemon.sh > /dev/null 2>&1 &
+ /opt/stats_daemon.sh > /dev/null 2>&1 &
fi
+