rendered paste body#!/bin/sh# $Id: start_neutrino,v 1.4 2005/11/06 18:25:08 Worschter Exp $date -s 010101001970if [ -e /var/etc/.rdate ]; then rdate time.fu-berlin.defisectionsdtimerd/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 -uelse zapitfi;controldnhttpd#/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=1while expr $KEEP_ALIVE != 0 > /dev/null do neutrino -u -f KEEP_ALIVE=$?donepzapit -kill[ ! -e /tmp/.config_stop ] && /var/plugins/operations camd_exit &if pidof logcsd > /dev/null; then killall logcsdfi;[ -e /tmp/tuxmaild.pid ] && kill -term $( cat /tmp/tuxmaild.pid )i=50while expr $i != 0 > /dev/nulldo 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;fii=`expr $i - 1`sleep 1doneif [ -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 0fiif [ -e /tmp/.reboot ] ; then rebootelse haltfi# Gegen 'Zwitschern'# Quelle: http://www.keywelt-board.com/index.php?showtopic=59651while [ 1 ]; do sleep 17; /bin/enxreset; done &