diff options
author | Holger Schurig <schurig@mn-solutions.de> | 2005-02-17 08:47:43 +0000 |
---|---|---|
committer | Holger Schurig <schurig@mn-solutions.de> | 2005-02-17 08:47:43 +0000 |
commit | c7aab9b2af8c08ae76843ca77a813903f55f3880 (patch) | |
tree | 8a8d0fac7efab260a1362b946b1e20ffc8ed2dca /packages/opie-taskbar | |
parent | 74b47014db3142d24d42e9f93e95a2f8f535586d (diff) |
Merge http://oe-devel@openembedded.bkbits.net/openembedded
into mnz66.mn-solutions.de:/usr/src/oe/p
2005/02/17 09:47:19+01:00 mn-solutions.de!schurig
changed Opie start script for MNCI "Ramses"
2005/02/17 09:45:22+01:00 mn-solutions.de!schurig
Adaptions of libqte2 towards MNCI "Ramses"
BKrev: 42145a2f4tW6O19CSnVGjOJLx3Akpg
Diffstat (limited to 'packages/opie-taskbar')
-rw-r--r-- | packages/opie-taskbar/opie-taskbar/opie | 6 | ||||
-rw-r--r-- | packages/opie-taskbar/opie-taskbar/ramses/opie | 80 |
2 files changed, 83 insertions, 3 deletions
diff --git a/packages/opie-taskbar/opie-taskbar/opie b/packages/opie-taskbar/opie-taskbar/opie index 81f7a60c1d..3a387186a2 100644 --- a/packages/opie-taskbar/opie-taskbar/opie +++ b/packages/opie-taskbar/opie-taskbar/opie @@ -62,9 +62,9 @@ case $1 in 'stop') echo "Stopping Opie..." - killall qpe - killall opie-login - killall quicklauncher + killall qpe 2>/dev/null + killall opie-login 2>/dev/null + killall quicklauncher 2>/dev/null ;; diff --git a/packages/opie-taskbar/opie-taskbar/ramses/opie b/packages/opie-taskbar/opie-taskbar/ramses/opie index e69de29bb2..f5887c4be2 100644 --- a/packages/opie-taskbar/opie-taskbar/ramses/opie +++ b/packages/opie-taskbar/opie-taskbar/ramses/opie @@ -0,0 +1,80 @@ +#!/bin/sh +# +[ -z $LOGNAME ] && export LOGNAME=root && export HOME=/home/root +[ -z $HOME ] && export HOME=/home/$LOGNAME + +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 +# export QWS_KEYBOARD=KernelTTY + +if [ ! -x "$OPIEDIR/bin/qpe" ] ; then + echo Opie not installed + exit 0 +fi + +. /etc/profile + +if [ ! -e "$HOME/Settings/qpe.conf" ] ; then + echo "Copying default qpe.conf into $HOME/Settings/" + mkdir -p $HOME/Settings/ + cat $OPIEDIR/etc/skel/qpe.conf >$HOME/Settings/qpe.conf +fi + +if [ ! -e "$HOME/Settings/locale.conf" -a -e "$OPIEDIR/etc/skel/locale.conf" ] ; then + cat $OPIEDIR/etc/skel/locale.conf >$HOME/Settings/locale.conf +fi + +if [ ! -e "$HOME/systeminfo/linkver" ] ; then + mkdir -p $HOME/systeminfo/ + echo "1.13" >$HOME/systeminfo/linkver +fi + +if [ ! -e "/opt/Qtopia" ] ; then + ln -sf /opt/QtPalmtop /opt/Qtopia +fi + +case $1 in +'start') + 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 + + ;; + +'stop') + echo "Stopping Opie..." + killall qpe 2>/dev/null + killall opie-login 2>/dev/null + killall quicklauncher 2>/dev/null + + ;; + +'restart') + $0 stop && $0 start + + ;; + +*) + echo "usage: $0 { start | stop | restart }" + + ;; + +esac + |