skorpion-23 Geschrieben 6. Juli 2007 Melden Share Geschrieben 6. Juli 2007 Hallo Wie kann ich Embedded Uptime Project so einrichten das meine Dbox2 automatisch den befehl [ -e /var/bin/stbup ] && /var/bin/stbup -C /var/etc/stbup.conf & startet? Wo genau muß ich es in der Start-Neutrino eintragen, ist es egal wo? #!/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 Link zu diesem Kommentar Auf anderen Seiten teilen More sharing options...
Admin SnowHead Geschrieben 7. Juli 2007 Admin Melden Share Geschrieben 7. Juli 2007 @skorpion-23 Irgendwo zwischen date -s 010101001970 und while expr $KEEP_ALIVE != 0 > /dev/null Link zu diesem Kommentar Auf anderen Seiten teilen More sharing options...
skorpion-23 Geschrieben 7. Juli 2007 Autor Melden Share Geschrieben 7. Juli 2007 Ok, Danke werde ich mal testen By Link zu diesem Kommentar Auf anderen Seiten teilen More sharing options...
Empfohlene Beiträge
Archiviert
Dieses Thema ist jetzt archiviert und für weitere Antworten gesperrt.