diff options
author | Michael Lauer <mickey@vanille-media.de> | 2004-07-17 22:21:50 +0000 |
---|---|---|
committer | Michael Lauer <mickey@vanille-media.de> | 2004-07-17 22:21:50 +0000 |
commit | f3cf4455aefb97d32f7e288fd308cd6ac6f48ae8 (patch) | |
tree | 22e09444dca8a86b164a92eb8a572f85f3d48af9 /opie-taskbar | |
parent | 177e74f1521190142a321b5c2437cb30ee9996fa (diff) |
Merge bk://openembedded@openembedded.bkbits.net/packages
into allanon.vanille.de:/usr/local/projects/packages
2004/07/18 00:21:40+02:00 vanille.de!mickeyl
simplify /etc/init.d/opie now that opie has has daemon capabilities. this also saves memory
BKrev: 40f9a67eUFOePaNO0hnU1UzX6CqwoA
Diffstat (limited to 'opie-taskbar')
-rw-r--r-- | opie-taskbar/opie-taskbar/opie | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/opie-taskbar/opie-taskbar/opie b/opie-taskbar/opie-taskbar/opie index e69de29bb2..6ce6f6aec6 100644 --- a/opie-taskbar/opie-taskbar/opie +++ b/opie-taskbar/opie-taskbar/opie @@ -0,0 +1,74 @@ +#!/bin/sh +# +export QTDIR=/opt/QtPalmtop +export OPIEDIR=/opt/QtPalmtop +export QPEDIR=/opt/QtPalmtop +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OPIEDIR/lib +export PATH=$PATH:$OPIEDIR/bin + +if [ -e /proc/cpuinfo ] ; then + model=`grep "^Hardware" /proc/cpuinfo | sed -e "s/.*: *//" | tr a-z A-Z` + + case "$model" in + "HP IPAQ H3100" | "HP IPAQ H3800" ) + export QWS_DISPLAY=Transformed:Rot90:0 ;; + "HP IPAQ H5400" | "HP JORNADA 56X" | "HP IPAQ H2200" ) + export QWS_DISPLAY=Transformed:Rot0:0 ;; + *SIMPAD* ) + export QWS_KEYBOARD='SIMpad' + export QWS_DISPLAY=Transformed:Rot0:0 ;; + + *) + export QWS_DISPLAY=Transformed:Rot270:0 ;; + esac +else + export QWS_DISPLAY=Transformed:Rot270:0 +fi + +if [ ! -x "$OPIEDIR/bin/qpe" ] ; then + echo Opie not installed + exit 0 +fi + +. /etc/profile + +case $1 in +'start') + /sbin/getkey 5 "Starting Opie in 5 seconds... press key to interrupt." && exit 0 + + if [ -x "$OPIEDIR/bin/opie-login" ]; then + echo Starting Opie-login.... + $OPIEDIR/bin/opie-login -terminal 2 + else + $OPIEDIR/bin/opie-reorgfiles + if [ -x /usr/bin/ssh-agent ]; then + SSHAGENT=/usr/bin/ssh-agent + else + SSHAGENT="" + fi + + if [ -x "$OPIEDIR/bin/opie-sh-ssh-askpass.sh" ]; then + export SSH_ASKPASS=$OPIEDIR/bin/opie-sh-ssh-askpass.sh + fi + echo Starting Opie.... + $SSHAGENT $OPIEDIR/bin/qpe -terminal 2 + fi + fi + + ;; + +'stop') + echo "Stopping Opie..." + killall qpe + killall opie-login + killall quicklauncher + + ;; + +*) + echo "usage: $0 { start | stop }" + + ;; + +esac + |