#!/bin/sh echo Installing GUI SOHO 4.0 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/games ipkg SDL_ttf ipkg SDL_image ipkg SDL_net ipkg SDL_perl #--------------------------------------------------------- cd $CWD/games ipkg ltris ipkg xpilot ipkg gtkatlantic ipkg digger ipkg powermanga ipkg frozenbubble