From: Jure C. <gan...@us...> - 2005-04-25 21:59:29
|
Update of /cvsroot/morphix/scripts-main/bare In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16382 Added Files: include.sh Log Message: syncing with mother ship --- NEW FILE: include.sh --- #! /bin/bash # You shouldn't need to change anything below this line PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:." CMDLINE="$(cat /proc/cmdline)" BGIMAGE=/morphix/background.png XServer=XFree86 USER=morph BGIMAGE=/cdrom/background.png stringinstring(){ case "$2" in *$1*) return 0;; esac return 1 } getbootparam(){ stringinstring " $1=" "$CMDLINE" || return 1 result="${CMDLINE##*$1=}" result="${result%%[ ]*}" echo "$result" return 0 } if [ -n "$(getbootparam wm)" ]; then WINDOWMANAGER="$(getbootparam wm)" elif test -e "/morphix/defaultwm" -a -z "$WINDOWMANAGER" ; then WINDOWMANAGER="/morphix/defaultwm" fi if [ -n "$(getbootparam background)" ]; then BGIMAGE="$(getbootparam background)" fi if [ -n "$(getbootparam username)" ]; then USER="$(getbootparam username)" fi HOME="/home/$USER/" |