3 [ -z $LOGNAME ] && export LOGNAME=root && export HOME=/home/root
4 [ -z $HOME ] && export HOME=/home/$LOGNAME
6 # we need to tinker directly with qws_display until the ODevice
7 # default (which is now W100:Rot0:0) works flawlessly with rotation
8 # and survives a suspend/resume cycle
9 export QWS_DISPLAY=Transformed:Rot0:0
10 # export QWS_DISPLAY=W100:Rot0:0
11 export QTDIR=/opt/QtPalmtop
12 export OPIEDIR=/opt/QtPalmtop
13 export QPEDIR=/opt/QtPalmtop
14 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OPIEDIR/lib
15 export PATH=$PATH:$OPIEDIR/bin
17 if [ ! -x "$OPIEDIR/bin/qpe" ] ; then
18 echo Opie not installed
24 for conf in $OPIEDIR/etc/skel/*.conf; do
25 conf_basename=`basename $conf`
26 if [ ! -e "$HOME/Settings/$conf_basename" ] ; then
27 echo "Copying default $conf_basename into $HOME/Settings/"
28 mkdir -p $HOME/Settings/
29 cat $conf >$HOME/Settings/$conf_basename
33 if [ ! -e "$HOME/systeminfo/linkver" ] ; then
34 mkdir -p $HOME/systeminfo/
35 echo "1.13" >$HOME/systeminfo/linkver
38 if [ ! -e "/opt/Qtopia" ] ; then
39 ln -sf /opt/QtPalmtop /opt/Qtopia
44 /sbin/getkey 5 "Starting Opie in 5 seconds... press key to interrupt." && exit 0
46 if [ -x "$OPIEDIR/bin/opie-login" ]; then
47 echo Starting Opie-login....
48 $OPIEDIR/bin/opie-login -terminal 2
50 $OPIEDIR/bin/opie-reorgfiles
51 if [ -x /usr/bin/ssh-agent ]; then
52 SSHAGENT=/usr/bin/ssh-agent
57 if [ -x "$OPIEDIR/bin/opie-sh-ssh-askpass.sh" ]; then
58 export SSH_ASKPASS=$OPIEDIR/bin/opie-sh-ssh-askpass.sh
60 echo Starting Opie....
61 $SSHAGENT $OPIEDIR/bin/qpe -terminal 2
67 echo "Stopping Opie..."
68 killall qpe 2>/dev/null
69 killall opie-login 2>/dev/null
70 killall quicklauncher 2>/dev/null
80 echo "usage: $0 { start | stop | restart }"