#!/bin/sh
#Copyright (C) 2004 Nokia Corporation. 

TGT=''
if [ -e /targets/links/scratchbox.config ] ; then
	. /targets/links/scratchbox.config
	TGT=$SBOX_TARGET_DIR
fi

if [ -x /etc/init.d/ttyusb0 ]; then
        update-rc.d ttyusb0 start 99 2 . >/dev/null
fi

OHOME="$TGT/home"

rm -f $TGT/etc/hostname

find "$TGT/var/log" -type f | xargs rm -f

mkdir -p /media/mmc1 

# SIGH, we can't add dirs to /home in scratchbox
# We don't want adduser on our system:
[ ! -d "$OHOME" ] && mkdir -p "$OHOME" || :

