3 [[ ${SVCNAME} == "dcron" ]] && exec >& /dev/null
5 [ -e ~/.nowallpaper ] && exit 0
6 #[ -z "`pgrep X-life-line`" ] && exit 0
9 WALLPAPERPROG="Esetroot"
12 /usr/share/pixmaps/wallpapers/active
16 for dir in ${WALLPAPERDIRS} ; do
17 tmpcnt=`ls ${dir} | wc -l`
18 WALLPAPERCOUNT=$((${WALLPAPERCOUNT} + ${tmpcnt}))
20 [ ${WALLPAPERCOUNT} -eq 0 ] && exit 0
21 WP=`expr ${RANDOM} % ${WALLPAPERCOUNT} + 1`
24 && WALLPAPER="`find ${WALLPAPERDIRS} -maxdepth 1 -type f -o -type l | cut -d$'\n' -f ${WP}`" \
27 ${WALLPAPERPROG} ${WALLPAPEROPTS} "${WALLPAPER}"