#!/bin/sh

model=`grep ^Hardware /proc/cpuinfo | head -n1 | tr [A-Z] [a-z] | sed -e 's/^.*: //;s/^sharp[- ]//'`

#[ -z "$model" ] && model="collie"

if [ "$model" = "spitz" ]; then
	if [ ! -e /hdd2/Applications/.opera ]; then 
		mkdir /hdd2/Applications/.opera
	fi

	if [ ! -e /hdd2/Applications/.operasave ]; then
		 mkdir /hdd2/Applications/.operasave
	fi
	chown zaurus /hdd2/Applications/.opera
	chown zaurus /hdd2/Applications/.operasave

	if [ ! -e /home/zaurus/.opera ]; then
		ln -s /hdd2/Applications/.opera /home/zaurus/.opera
	fi

	if [ ! -e /home/zaurus/.operasave ]; then
		ln -s /hdd2/Applications/.operasave /home/zaurus/.operasave
	fi
exit 0

fi

