#!/bin/sh

echo Nastavuji restart po kernel panic
echo 1 > /proc/sys/kernel/panic

#echo Nacitam pravidla firewallu...
#iptables-restore /etc/sysconfig/iptables

echo Mazu nohup...
rm /a/bin/nohup.out -f
rm /root/nohup.out -f

echo Mazu logy...
rm /a/log/share.log -f

echo Loguj start...
date >> /a/log/boot.log

echo Zapinam numlock...
/a/bin/numlock.sh&

#echo Spoustim pripojeni k internetu
#/usr/local/bin/cdma_log.sh>/a/log/cdma_log.log 2>/a/log/cdma_log.err&

#echo Vypinam zalozni disk...
#/sbin/hdparm -y /dev/hdc

echo Spoustim kontrolu online pocitacu...
/a/bin/netwatch.sh>/a/log/netwatch.log 2>/a/log/netwatch.err&

echo Spoustim zaznam statistik...
/a/bin/monitor.sh >/a/log/monitor.log 2>/a/log/monitor.err&

echo Spoustim kontrolu zatizeni internetu...
/a/bin/bandwidth.sh >/a/log/bandwidth.log 2>/a/log/bandwidth.err&

echo Spoustim NAT...
/a/bin/nat.sh 

#echo Spoustim DNS server...
#/a/bin/named.sh >/a/log/named.log OC2>/a/log/named.err&

#echo Spoustim VPN...
#/usr/local/bin/vpn.sh >/a/log/vpn.log 2>/a/log/vpn.err&

#echo Spoustim ReqTrans Server
#/usr/bin/php -q /var/www/html/rqtserver.php >>/a/log/reqtrans.log 2>/a/log/reqtrans.err&

#echo Spoustim Sunrisechat database updater...
#/usr/local/bin/chat.sh >/a/log/chat.log 2>/a/log/chat.err&

#echo Spoustim UDP broadcast forwarder...
#/usr/local/bin/udp_forwarder.sh 2>/a/log/udp_forwarder.err&

#echo Spoustim mereni teploty...
#/a/bin/temperature>/a/log/temperature.log&

#echo Spoustim VMWare Workstation s Windows 2003 Server..
#su vmware -c /usr/local/bin/vmware.sh >/a/log/vmware.log 2>/a/log/vmware.err&

#echo Cekam 30 sekund...
#sleep 30

#echo Startuji bezdratove pripojeni...
#/usr/local/bin/wlan.sh&

echo Startuji traffic shaping...
/a/bin/traffic_shaping.sh >/a/log/traffic_shaping.log 2>/a/log/traffic_shaping.err&

#echo Zaznam existujicich MAC adres...
#/usr/bin/php /a/sys/statistic/known_mac.php >/a/log/known_mac.log 2>/a/log/known_mac.err&

echo Restartovani nastaveni...
/a/bin/config_restarter.sh >/a/log/config_restarter.log 2>/a/log/config_restarter.err&

#echo Zaznam sitovych pripojeni...
#/usr/bin/php /a/sys/statistic/connections.php >/a/log/connections.log 2>/a/log/connections.err&

echo Cyklicke pingovani nixu...
/a/bin/ping_nix.sh&

echo Pridavam smerovaci informace...
/a/bin/route.sh >/a/log/route.log 2>/a/log/route.err&

echo Refresh webkamery...
/a/bin/webcam.sh >/a/log/webcam.log 2>/a/log/webcam.err&

echo Import aktualit...
/a/bin/import_news.sh >/a/log/import_news.log 2>/a/log/import_news.err&
