I have written my first script for the ROKR E2. I can't seem to get it to run at all... It copies a theme (.chm file) and skin (folder) from the MMC to the directory on the phone that themes are stored in. But it won't run. Anyone see any error in the code?
#!/bin/bash
# Script to Move Themes and Skins into phone!
export QTDIR=/usr/lib/ezx
my_alert='/usr/SYSqtapp/phone/alertprocess'
myfile=`basename $0`
mypath=`echo $0 | sed -e 's/'$myfile'//g'`
my_wav1="$mypath/Theme.wav"
my_wav2="$mypath/Skin.wav"
my_wav3="$mypath/Folder.wav"
If [ -d /mmc/mmca1/installtheme ] ; then
If [ -e /mmc/mmca1/installtheme/theme/*.chm ]; then
mv /mmc/mmca1/installtheme/theme/*.chm /ezx_user/download/appwrite/setup/theme/
$my_alert -playvol 10 -playfile $my_wav1
If [ -e /mmc/mmca1/installtheme/skin/* ]; then
mv /mmc/mmca1/installtheme/skin/* /ezxlocal/download/appwrite/skin/
$my_alert -playvol 3 -playfile $my_wav2
else
mkdir /mmc/mmca1/installtheme
mkdir /mmc/mmca1/installtheme/theme
mkdir /mmc/mmca1/installtheme/skin
$my_alert -playvol 3 -playfile $my_wav3
fi
fi
fi