#!/bin/sh echo Installing Custumisation CWD=`pwd` LOG="$CWD/install-gui.log" echo LOG `date` > $LOG function ipkg() { if [ "$1" = "--all" ]; then echo Installing all `pwd`/$1 ... installpkg *.tgz >> $LOG 2>&1 if [ ! $? = 0 ]; then echo ERROR: Stopped tail -n 10 $LOG exit 1 fi fi while [ "$1" ]; do echo Install $1 installpkg $1*.tgz >> $LOG 2>&1 if [ ! -L /usr/X11 ]; then echo "WARNING: /usr/X11 is not a symlink anymore !" fi if [ ! $? = 0 ]; then echo ERROR: Stopped tail -n 10 $LOG exit 1 fi shift done } #-------------------------------------------------- cd $CWD/audio ipkg xmms-custom #-------------------------------------------------- cd $CWD/video ipkg xine-custom #-------------------------------------------------- cd $CWD/wm ipkg gui-base ipkg gui-themes ipkg xdm-custom ipkg wdm-custom ipkg rox-custom ipkg icewm-custom ipkg xfce4-custom ipkg kdm-custom ipkg dfm-custom #------------------------------------------------------ # Add user userdel soho rm -rf /home/soho adduser soho