View Single Post
Posts: 527 | Thanked: 121 times | Joined on Feb 2010
#19
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...