In /etc/init.d open rcS with an editor and search for "/var/etc/init"
That will give you an idea when init is called during boot.
If you are not happy with that another trick is to use your emu startup script and call your script through that
For example if you use CCcam then edit /var/script/CCcam_2.1.2_cam.sh like this
Code
CAMNAME="CCcam 2.1.2"
USERNAME=""
ZAPTIME=6
CAMID=6074
DVBSET=0
INFOFILE="ecm.info"
INFOFILELINES=
# end
remove_tmp () {
rm -rf /tmp/*.info* /tmp/*.tmp*
}
case "$1" in
start)
echo "[SCRIPT] $1: $CAMNAME"
remove_tmp
/var/bin/CCcam_2.1.2 &
/var/script/my_script.sh
;; stop)
echo "[SCRIPT] $1: $CAMNAME"
killall newcs_1.67 CCcam_2.1.2 2>/dev/null
sleep 2
remove_tmp
;;
*)
$0 stop
exit 0
;;
esac
Alles anzeigen
The emu start up script is the last one called during the boot sequence
This is an idea that just popped in to my head... i didnt test it but it should work just fine