got it replaced automatically... even before the video is loaded ^^ *hrhr*
instructions:
1. download the zip-file and place file "rvid" in ~/MyDocs/ranvid/ (for example)
2. open xterm
3. type "sudo gainroot"
4. type "cp MyDocs/ranvid/rvid /etc/event.d/"
5. type "chmod 777 /etc/event.d/rvid"
if you haven't done it yet:
8. type "mkdir /etc/hildon-welcome.d/dconfs"
9. place your default.conf files there BUT rename them in 1.conf, 2.conf, 3.conf and so on.
so the contents should be:
/etc/hildon-welcome.d/default.conf
and
/etc/hildon-welcome.d/dconfs/1.conf
/etc/hildon-welcome.d/dconfs/2.conf
/etc/hildon-welcome.d/dconfs/3.conf
... and so on.
ehm yeah... have fun
edit: forgot to mention... this one is the code which will always replace the current bootvideo with any other bootvideo out of the x.conf files (:
Thanks !!
Something strange...
I use the winSCP. I put the rvid file to the /etc/event.d and reboot the phone 4 times !
It's work, but it's change only between 2 videos from 4 I have
Why ?
I get this :-)
Now it's play 3 videos from 4....
I check the dconfs folder and I found the file named 1.lock. I deleted this file and reboot again 4 times. Now it's play 3 videos from 4....
I check again the dconfs folder and I found the file named 4.lock...
I think, maybe I have put some simple video5 + 5.conf + 5.lock. Maybe this option lock the video number 5 and it's play only 4 videos
I'll try it's now...
don't worry... the *.lock files are my way to check which default.conf is used at the moment... because i don't want to replace the file with the same file and _maybe_ get the same bootvideo over and over again.
i have tested my shellscript with 5 x.conf files.
you can see the output in the image i attached.
my script is doing what it is supposed to do.
maybe there is an issue with generating random numbers out of /dev/urandom on startup?! http://en.wikipedia.org/wiki//dev/random
edit:
GOD DAMN IT!
my random number generating line only produces two different numbers. that's because /dev/urandom is based on drivers' noise and (that would be my explanation) gets flushed at power on. so the noise the drivers are producing is always the same at the same time. -.-
i need to find another way to get a random number :/
($RANDOM didn't work for me...)
any suggestions for generating a REAL random number on startup?
i tried to launch the script on shutdown with "start on shutdown" but this doesn't work.
edit: "start on runlevel 0" doesn't work too.
would be nice if there would be any chance of running the a script in event.d on shutdown.
especially if it depends on a good entropy pool like generating a random number out of /dev/urandom. ^^