The Following User Says Thank You to b666m For This Useful Post: | ||
![]() |
2010-02-18
, 22:11
|
|
Posts: 1,090 |
Thanked: 476 times |
Joined on Jan 2010
@ Ingolstadt, Germany
|
#22
|
![]() |
2010-02-19
, 05:47
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#23
|
![]() |
2010-02-19
, 09:20
|
Posts: 527 |
Thanked: 121 times |
Joined on Feb 2010
|
#24
|
if anybody is interested in this random bootvideo shortcut on the desktop. i could write a short how-to
![]() |
2010-02-19
, 20:29
|
|
Posts: 1,090 |
Thanked: 476 times |
Joined on Jan 2010
@ Ingolstadt, Germany
|
#25
|
![]() |
2010-02-19
, 21:07
|
|
Posts: 1,090 |
Thanked: 476 times |
Joined on Jan 2010
@ Ingolstadt, Germany
|
#26
|
#!/bin/bash cd /etc/hildon-welcome.d/dconfs/ if [ -f 1.conf ]; then # determine number of files in /dconfs nof=$(ls *.conf | wc -l) # get random number rna=$(dd if=/dev/urandom count=1 2> /dev/null | cksum | cut -f1 -d" ") rna=$(dd if=/dev/urandom count=1 2> /dev/null | cksum | cut -f1 -d" ") if [ $rna -ge $rnb ]; then let "rn = $rna - $rnb" else let "rn = $rnb - $rna" fi # in range of 1 - nof let "rr = $rn % $nof + 1" # choose random conf rf="$rr.conf" echo "$rr.conf" # copy it over to default.conf cp $rf ../default.conf fi # exit exit 0
[Desktop Entry] Encoding=UTF-8 Version=0.1 Type=Application Terminal=true Name=rvid Exec=/bin/busybox sh -c 'echo sh /etc/hildon-welcome.d/rvid.sh | sudo gainroot' Icon=terminal #X-Window-Icon= X-Window-Icon= X-HildonDesk-ShowInToolbar=true X-Osso-Type=application/x-executable
The Following User Says Thank You to b666m For This Useful Post: | ||
![]() |
2010-02-19
, 21:20
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#27
|
![]() |
2010-02-19
, 21:48
|
|
Posts: 1,090 |
Thanked: 476 times |
Joined on Jan 2010
@ Ingolstadt, Germany
|
#28
|
where I need put the video files ? to /MyDocs/randomvid/ ?
or in default folder /media ?
The Following User Says Thank You to b666m For This Useful Post: | ||
![]() |
2010-02-19
, 22:11
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#29
|
![]() |
2010-02-19
, 23:31
|
|
Posts: 1,090 |
Thanked: 476 times |
Joined on Jan 2010
@ Ingolstadt, Germany
|
#30
|
I get this ! Thank you very much !
Another question, can we get this process automatically, without pressing on the button on desktop before reboot ? I mean on all reboot it the load another video ? (sorry for my ugly english :-) )
got it ^^
(i only have 2 confs in the dconfs-folder ^^)
maybe i'll try to get it in rc2.d
a shortcut on the desktop (for doing it manually) to this script is done very fast (:
Last edited by b666m; 2010-02-18 at 21:28.