geek rescue kit Code
Brought to you by:
ctaf
#!/bin/zsh ## ctafinfo.sh for ctafconf in /ctaf/conf ## ## Made by root ## Login <root@epita.fr> ## ## Started on Fri Feb 18 16:13:08 2005 root ## Last update Fri Mar 31 20:55:38 2006 GESTES Cedric ## ##ORIGINALY FROM CTAFCONF ##if ! [ $# -eq 1 ]; then ## echo "usage: ct-set-bg <wallpaper.image>" ## exit ##fi ## ## ##PORVIDE USER INFO TO ALL CTAFCONF ## if ! [ -f ~/.ctafconf/perso/user-profile ]; then echo "Can't find your ~/.ctafconf/perso/user-profile" echo "you should reinstall env with ctafconf-install" exit 1 fi . ~/.ctafconf/perso/user-profile wallpp=~/.ctafconf/etc/wallpaper/$ctafconf_wallpaper wallpp2=~/.ctafconf/perso/wallpaper/$ctafconf_wallpaper if [ -f $wallpp2 ]; then wallpp=$wallpp2 fi # if [ which gconftool-2 > /dev/null 2> /dev/null ] ; then # gconftool-2 -s /desktop/gnome/background/picture_filename $wallpp # gconftool-2 -s /desktop/gnome/background/picture_options stretched # fi if [ `which "Esetroot" >/dev/null 2>/dev/null; echo $?;` -eq 0 ]; then echo "#### CTAFCONF: using Esetroot" Esetroot -scale $wallpp; exit 0 fi if [ `which "fbsetbg" >/dev/null 2>/dev/null; echo $?;` -eq 0 ]; then echo "#### CTAFCONF: using fbsetbg" fbsetbg -u xv $wallpp; #fbsetroot -f $wallpp; exit 0 fi if ! [ `which "xsetroot" >/dev/null 2>/dev/null; echo $?;` -eq 0 ]; then #elif which "xsetroot"; then echo "#### CTAFCONF: using xsetroot" xsetroot -solid black exit 0 fi