#!/bin/sh # $Id: start_neutrino,v 1.4 2005/11/06 18:25:08 Worschter Exp $ date -s 010101001970 if [ -e /var/etc/.rdate ]; then rdate time.fu-berlin.de fi sectionsd timerd /var/plugins/operations logcs_init [ -e /var/etc/.tuxcald ] && tuxcald & [ -e /var/etc/.key_auto_up ] && key_autoupd & /var/plugins/operations camd_init & if [ -e /var/etc/.pmt_update ] ; then zapit -u else zapit fi; controld nhttpd #/var/plugins/operations sect_renice & /var/plugins/operations epg_reinit & if [ -e /var/plugins/woltimer/.wol_auto ] ; then touch /var/plugins/woltimer/.wol sleep 40 && /var/plugins/woltimer/woltimerd & fi; KEEP_ALIVE=1 while expr $KEEP_ALIVE != 0 > /dev/null do neutrino -u -f KEEP_ALIVE=$? done pzapit -kill [ ! -e /tmp/.config_stop ] && /var/plugins/operations camd_exit & if pidof logcsd > /dev/null; then killall logcsd fi; [ -e /tmp/tuxmaild.pid ] && kill -term $( cat /tmp/tuxmaild.pid ) i=50 while expr $i != 0 > /dev/null do if [ ! -e /tmp/.config_stop ] && pidof controld > /dev/null; then echo "Waiting for controld (max. $i seconds)" elif pidof timerd > /dev/null; then echo "Waiting for timerd (max. $i seconds)" elif pidof zapit > /dev/null; then echo "Waiting for zapit (max. $i seconds)" elif pidof tuxmaild > /dev/null; then echo "Waiting for tuxmaild (max. $i seconds)" else break; fi i=`expr $i - 1` sleep 1 done if [ -e /tmp/.config_stop ]; then if pidof zapit > /dev/null; then killall -9 zapit fi i=1 while expr $i != 2 > /dev/null do msgbox title="Configs einspielen" msg="Bitte jetzt Config-Dateien einspielen" select="moment,reboot" timeout=999 size=32 i=$? killall -9 msgbox done /var/plugins/operations ex_kill reboot exit 0 fi if [ -e /tmp/.reboot ] ; then reboot else halt fi # Gegen 'Zwitschern' # Quelle: http://www.keywelt-board.com/index.php?showtopic=59651 while [ 1 ]; do sleep 17; /bin/enxreset; done &