opie-init: Update for FHS-compatible OPIE install.
authorPaul Sokolovsky <pmiscml@gmail.com>
Wed, 4 Jul 2007 17:28:21 +0000 (17:28 +0000)
committerPaul Sokolovsky <pmiscml@gmail.com>
Wed, 4 Jul 2007 17:28:21 +0000 (17:28 +0000)
* Per #2254.

packages/opie-init/opie-init/opie
packages/opie-init/opie-init_1.2.2.bb

index 248ec46..4a90854 100755 (executable)
@@ -9,9 +9,9 @@ export QPEDIR="$QTDIR"
 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OPIEDIR/lib
 export PATH=$PATH:$OPIEDIR/bin
 
-if [ ! -x "$OPIEDIR/bin/qpe" ] ; then 
+if [ -z `which qpe` ] ; then 
     echo Opie not installed
-    exit 0 
+    exit 0
 fi
 
 . /etc/profile
@@ -34,14 +34,8 @@ if [ ! -e "$HOME/systeminfo/linkver" ] ; then
     echo "1.13" >$HOME/systeminfo/linkver
 fi
 
-if [ ! -e "/opt/Qtopia" ] ; then
-    ln -sf /opt/QtPalmtop /opt/Qtopia
-fi
-
 case $1 in
 'start')
-    #/sbin/getkey 5 "Starting Opie in 5 seconds... press key to interrupt." && exit 0
-
     # Turn off psplash if any - sleep is required for anti-race
     if [ -e /mnt/.psplash ]; then
         TMPDIR=/mnt/.psplash psplash-write "QUIT" || true
@@ -52,7 +46,7 @@ case $1 in
             echo Starting Opie-login....
             $OPIEDIR/bin/opie-login -terminal 3
     else
-        $OPIEDIR/bin/opie-reorgfiles
+        opie-reorgfiles
         
         if [ -x "$OPIEDIR/bin/opie-sh-ssh-askpass.sh" ]; then
             export SSH_ASKPASS=$OPIEDIR/bin/opie-sh-ssh-askpass.sh
@@ -60,15 +54,15 @@ case $1 in
         echo Starting Opie....
        (
         test -x /usr/bin/ssh-agent && eval $(/usr/bin/ssh-agent -s) && echo $SSH_AGENT_PID>/var/run/opie-ssh-agent.pid ;
-         $OPIEDIR/bin/qpe -terminal 3
+         qpe -terminal 3
        )
        echo -n >/var/log/opie-qss.log
-       test -x $OPIEDIR/bin/qpe && { for attempt in 0 1 2 3 4 5 6 7 8 9 a b c d e f ; do
+       { for attempt in 0 1 2 3 4 5 6 7 8 9 a b c d e f ; do
            sleep 1
            echo "Waiting for qcop to startup: $attempt ..." >>/var/log/opie-qss.log
-           $OPIEDIR/bin/qcop QPE/System 'ping()' || continue
+           qcop QPE/System 'ping()' || continue
            echo "Starting qss" >>/var/log/opie-qss.log
-           $OPIEDIR/bin/qss </dev/null >>/var/log/opie-qss.log 2>&1
+           qss </dev/null >>/var/log/opie-qss.log 2>&1
            echo "qss exited, will try to restart" >>/var/log/opie-qss.log
        done; rm /var/run/opie-qss-loop.pid; } &
        echo $! >/var/run/opie-qss-loop.pid
index 4192216..9a56f87 100644 (file)
@@ -1,5 +1,5 @@
 require ${PN}.inc
-PR = "r5"
+PR = "r6"
 
 SRC_URI = "file://opie-reorgfiles \
            file://opie \