PDA

View Full Version : login script for scratchbox 0.9.8...


ku4tp
02-02-2007, 06:13 AM
DISCLAIMER: pretty much a noob here - please be patient.

I have run the new install script for maemo 2.1 and all seemed to go well. When I tried to login to scratchbox I got:

ERROR: Scratchbox dir '/scratchbox/users/ku4tp//scratchbox/tools/bin' is missing!

well, /scratchbox/users/ku4tp is there and /scratchbox/tools/bin is there, but sure enough I see no '/scratchbox/users/ku4tp//scratchbox/tools/bin'

looking at the login script I see, in the sanity check section:

#!/scratchbox/tools/bin/bash

. /scratchbox/etc/question_func.sh

# set & check where all the good stuff is
sbox=/scratchbox/users/$USER
utils=/scratchbox/tools/bin
libsb=/scratchbox/tools/lib/libsb.so.0


# Sanity checking

if [ `id -u` == "0" ] ; then
echo "Not allowed to run this as root!"
exit 1
fi
if [ ! -d $sbox ]; then
echo "You don't have a Scratchbox user account!"
exit 1
fi
if [ ! -d "$sbox/$utils" ]; then
echo "ERROR: Scratchbox dir '$sbox/$utils' is missing!"
exit 1
fi
if [ ! -c "$sbox/scratchbox/dev/zero" ] ; then
echo "ERROR: /dev is probably missing!"
exit 1
fi


Obviously, the third if statement is where I am having my problem. Am I wrong in thinking it is written incorrectly, looking for two directories as one? And what would be the best way to correct it?

Oh - and I don't know if it matters - I'm installing on SUSE 10.2

Thanks in advance!

artgopi
02-02-2007, 12:26 PM
I'm a newbie too...

I think you need to start something. Try:

# /scratchbox/sbin/sbox_ctl start

Artur