Dear visitor, welcome to Dreamboard. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
This post has been edited 2 times, last edit by "blu8" (Nov 22nd 2011, 7:53pm) with the following reason: errata/corrige Nemesis ist mindestens genau so sauber wie OoZooN
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
#!/bin/sh
prefix=/usr
exec_prefix=/usr
datarootdir=${prefix}/share
if [ -x /usr/bin/showiframe -a -f /usr/share/backdrop.mvi ]; then
/usr/bin/showiframe /usr/share/backdrop.mvi
fi
# hook to execute scripts always before enigma2 start
if [ -x /usr/bin/enigma2_pre_start.sh ]; then
/usr/bin/enigma2_pre_start.sh
fi
if [ -d /home/root ]; then
cd /home/root
fi
LIBS="$LIBS /usr/lib/libopen.so.0.0.0"
#check for dreambox specific passthrough helper lib
if [ -e /usr/lib/libpassthrough.so ]; then
LIBS="$LIBS /usr/lib/libpassthrough.so"
fi
# HIER KÖNNTE MAN SCRIPTE AUSFÜHREN
PAGECACHE_FLUSH_INTERVAL=$((512*1024)) LD_PRELOAD=$LIBS /usr/bin/enigma2
# ABER NICHT HIER.... DAS IST TOTAL FALSCH UND ZERSTÖRT GGF. DEN ENIGMA2 RETURN CODE DER WEITER UNTEN GEPRÜFT WIRD!!!!!!
# enable swap
if [ -x /usr/script/myscripts/swap_script.sh ]; then /usr/script/myscripts/swap_script.sh start 512 /media/cf; fi
# enigma2 exit codes:
#
# 0 - restart enigma
# 1 - halt
# 2 - reboot
#
# >128 signal
ret=$?
# HIER WÄRE ZUR NOT AUCH NOCH OKAY... WEIL DER RETURN CODE SCHON IN DER VARIABLE ret GESPEICHERT WURDE
case $ret in
1)
/sbin/halt
;;
2)
/sbin/reboot
;;
4)
/sbin/rmmod lcd
/usr/sbin/fpupgrade --upgrade 2>&1 | tee /home/root/fpupgrade.log
sleep 1;
/sbin/rmmod fp
/sbin/modprobe fp
/sbin/reboot
;;
*)
;;
esac
# ODER ABER HIER ...
|

Woran kann man erkennen ob die Datei verändert wurde? Dann sehe ich mal nach...
This post has been edited 2 times, last edit by "tomde" (Nov 23rd 2011, 5:56pm)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
#!/bin/sh
prefix=/usr
exec_prefix=/usr
datarootdir=${prefix}/share
if [ -x /usr/bin/showiframe -a -f /usr/share/backdrop.mvi ]; then
/usr/bin/showiframe /usr/share/backdrop.mvi
fi
# hook to execute scripts always before enigma2 start
if [ -x /usr/bin/enigma2_pre_start.sh ]; then
/usr/bin/enigma2_pre_start.sh
fi
if [ -d /home/root ]; then
cd /home/root
fi
LIBS="$LIBS /usr/lib/libopen.so.0.0.0"
#check for dreambox specific passthrough helper lib
if [ -e /usr/lib/libpassthrough.so ]; then
LIBS="$LIBS /usr/lib/libpassthrough.so"
fi
PAGECACHE_FLUSH_INTERVAL=$((512*1024)) LD_PRELOAD=$LIBS /usr/bin/enigma2
# enigma2 exit codes:
#
# 0 - restart enigma
# 1 - halt
# 2 - reboot
#
# >128 signal
ret=$?
case $ret in
1)
/sbin/halt
;;
2)
/sbin/reboot
;;
4)
/sbin/rmmod lcd
/usr/sbin/fpupgrade --upgrade 2>&1 | tee /home/root/fpupgrade.log
sleep 1;
/sbin/rmmod fp
/sbin/modprobe fp
/sbin/reboot
;;
*)
;;
esac
|