aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/fbsetbg6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/fbsetbg b/util/fbsetbg
index 73f2111..b3f62f2 100644
--- a/util/fbsetbg
+++ b/util/fbsetbg
@@ -23,7 +23,7 @@
23# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25# 25#
26# $Id: fbsetbg,v 1.26 2003/12/28 23:59:57 fluxgen Exp $ 26# $Id: fbsetbg,v 1.27 2004/01/03 01:23:59 fluxgen Exp $
27 27
28# Portability notes: 28# Portability notes:
29# To guarantee this script works on all platforms that support fluxbox 29# To guarantee this script works on all platforms that support fluxbox
@@ -453,8 +453,10 @@ if [ "$option" = random ]; then
453 fi 453 fi
454 if [ -d "$wallpaperdir" ]; then 454 if [ -d "$wallpaperdir" ]; then
455 number_of_wallpapers=`ls $wallpaperdir|wc -l` 455 number_of_wallpapers=`ls $wallpaperdir|wc -l`
456 if find_it random_number; then
457 randomnumber=$(random_number)
456 # some shells don't support $RANDOM 458 # some shells don't support $RANDOM
457 if [ -z $RANDOM ]; then 459 elif [ -z $RANDOM ]; then
458 randomnumber=`(echo $$ ;time ps; w ; date )2>&1 | cksum | cut -f1 -d' '` 460 randomnumber=`(echo $$ ;time ps; w ; date )2>&1 | cksum | cut -f1 -d' '`
459 else 461 else
460 randomnumber=$RANDOM 462 randomnumber=$RANDOM