


#!/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

#!/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