Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Multiple boot videos?

    Reply
    Page 2 of 13 | Prev |   1   2   3     4   12 | Next | Last
    neboja | # 11 | 2010-02-17, 23:24 | Report

    ok... so you make a bunch a config files, and every time you boot, it plays a diferent movie??? wright??? O_o

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Pfuh3z | # 12 | 2010-02-18, 15:53 | Report

    Originally Posted by neboja View Post
    ok... so you make a bunch a config files, and every time you boot, it plays a diferent movie??? wright??? O_o
    No, every time you boot, it plays all the movies referenced to by your config files. "Random" movie during boot would be a cooler feature though

    Dries

    Edit | Forward | Quote | Quick Reply | Thanks

     
    b666m | # 13 | 2010-02-18, 16:10 | Report

    Originally Posted by rolan900d View Post
    I found it...
    I need to make 2 config files like this:

    default.conf
    default2.conf
    if this really works...

    you could store all of those files in an additional folder ../dconfs (for example).
    then write a script which deletes the current defaultX.conf in the hildon/welcome folder and randomly copies any of the configs in /dconfs back when shutting the system down.

    this script could be stored in /etc/init.d/. then you have to symlink it to the correct rcX.d folder, i guess it would be rc0.d (http://en.wikipedia.org/wiki/Runlevel).

    ehm yeah... the script should then be executed when your system goes into halt?! o.O

    and you'll always have a random video at (re)boot. ^^

    edit: maybe it would be the best to change it on bootup with a rc2.d script

    EDIT: THAT'S MY FINAL SOLUTION FOR HAVING RANDOM BOOTVIDEOS ON STARTUP AUTOMATICALLY -> http://talk.maemo.org/showpost.php?p...5&postcount=35

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by b666m; 2010-02-20 at 13:45.

     
    rolan900d | # 14 | 2010-02-18, 17:04 | Report

    On my end it could only play 2 videos on boot!
    The 3rd and 4rd worked but only for sound..

    Edit | Forward | Quote | Quick Reply | Thanks

     
    b666m | # 15 | 2010-02-18, 17:25 | Report

    that would be a quick&dirty script for replacing the default.conf

    you have:
    /etc/hildon-welcome.d/default.conf
    and
    /etc/hildon-welcome.d/dconfs/ <- new folder where the configs are named "1.conf", "2.conf", "3.conf" and so on.

    the script determines the number of conf-files in the dconfs-folder and replaces the default.conf randomly with one of them

    Code:
    #!/bin/bash
    
    # determine number of files in /dconfs
    cd /etc/hildon-welcome.d/dconfs/
    nof=$(ls *.conf | wc -l)
    
    # get random number in range of 1 - nof 
    let "rn = $RANDOM % $nof + 1"
    
    # choose random conf
    rf="$rn.conf"
    
    # copy it over to default.conf
    cp $rf ../default.conf
    
    # exit
    exit 0

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by b666m; 2010-02-18 at 17:31.

     
    vietn900 | # 16 | 2010-02-18, 17:32 | Report

    mightm as well put on a whole movie ;p

    Edit | Forward | Quote | Quick Reply | Thanks

     
    silverstar29 | # 17 | 2010-02-18, 18:16 | Report

    Hey Rolan900d,

    I tried creating 2 default files.

    default.conf

    [hildon-welcome]
    filename= (Hand boot screen)

    And default2.conf

    [hildon-welcome]
    filename=short.avi

    But It didn't work. Still shows only the Hands as intro and thats it.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    b666m | # 18 | 2010-02-18, 18:56 | Report

    you could also make desktop-shortcut which executes the script or only the code (as one-liner) when you want to have a another/random bootvideo next time. xD

    Edit | Forward | Quote | Quick Reply | Thanks

     
    rolan900d | # 19 | 2010-02-18, 20:08 | Report

    Originally Posted by b666m View Post
    that would be a quick&dirty script for replacing the default.conf

    you have:
    /etc/hildon-welcome.d/default.conf
    and
    /etc/hildon-welcome.d/dconfs/ <- new folder where the configs are named "1.conf", "2.conf", "3.conf" and so on.

    the script determines the number of conf-files in the dconfs-folder and replaces the default.conf randomly with one of them

    Code:
    #!/bin/bash
    
    # determine number of files in /dconfs
    cd /etc/hildon-welcome.d/dconfs/
    nof=$(ls *.conf | wc -l)
    
    # get random number in range of 1 - nof 
    let "rn = $RANDOM % $nof + 1"
    
    # choose random conf
    rf="$rn.conf"
    
    # copy it over to default.conf
    cp $rf ../default.conf
    
    # exit
    exit 0
    I was really good in Symbian, but so a noob in Linux...
    Learning a lot over here, but you are out of my league mate!


    @b66m:
    That would be great; but I got lost on that script...

    Edit | Forward | Quote | Quick Reply | Thanks

     
    b666m | # 20 | 2010-02-18, 20:14 | Report

    outsch... too bad... $RANDOM doesn't deliver anything... this command isn't recognized at the n900 :/

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by b666m; 2010-02-18 at 20:55.

     
    Page 2 of 13 | Prev |   1   2   3     4   12 | Next | Last
vBulletin® Version 3.8.8
Normal Logout