summaryrefslogtreecommitdiff
path: root/scripts/update
authortille <tille>2002-06-24 12:35:34 (UTC)
committer tille <tille>2002-06-24 12:35:34 (UTC)
commit428959b4974f51d55c088c0f6d73ee24b726a702 (patch) (side-by-side diff)
treebcebd87976a683e830ce916c005e4d8ebd6c3f90 /scripts/update
parent5bbfde2c34b3bbccdae89171fa0528ca8ae22b32 (diff)
downloadopie-428959b4974f51d55c088c0f6d73ee24b726a702.zip
opie-428959b4974f51d55c088c0f6d73ee24b726a702.tar.gz
opie-428959b4974f51d55c088c0f6d73ee24b726a702.tar.bz2
fixed endless loop
Diffstat (limited to 'scripts/update') (more/less context) (ignore whitespace changes)
-rwxr-xr-xscripts/update/opie-update.postinst36
1 files changed, 21 insertions, 15 deletions
diff --git a/scripts/update/opie-update.postinst b/scripts/update/opie-update.postinst
index 70a5008..de045a4 100755
--- a/scripts/update/opie-update.postinst
+++ b/scripts/update/opie-update.postinst
@@ -1,2 +1,2 @@
-#!/bin/bash
+#!/bin/bash -v
#
@@ -14,4 +14,5 @@ pack=`ipkg status | grep Package | grep -i opie | sed "s/Package://"`
echo "Stopping Opie"
-`/etc/init.d/qpe stop`
+`/etc/init.d/opie stop`
+echo "start" > /tmp/update.log
@@ -19,3 +20,3 @@ for p in $pack; do
cmd="$IPKG_REMOVE $p"
-echo "$cmd"
+echo "rem. $p" >> /tmp/update.log
$cmd
@@ -23,13 +24,17 @@ done
-#to be sure
-pack2=`ipkg status | grep Package | grep -i opie | sed "s/Package://"`
-while [ $pack2 != "" ]
-do
-for p in $pack2; do
-cmd="$IPKG_REMOVE $p"
-echo "$cmd"
-$cmd
-done
-pack2=`ipkg status | grep Package | grep -i opie | sed "s/Package://"`
-done;
+#to be sure...
+#... to have an endless loop ;-)
+# so comment it!
+#pack2=`ipkg status | grep Package | grep -i opie | sed "s/Package://"`
+#while [ $pack2 != "" ]
+#do
+#echo "debug: while loop: $pack2"
+#for p in $pack2; do
+#echo "debug for loop: $p"
+#cmd="$IPKG_REMOVE $p"
+#echo "$cmd"
+#$cmd
+#done
+#pack2=`ipkg status | grep Package | grep -i opie | sed "s/Package://"`
+#done;
@@ -44,2 +49,3 @@ for p in $pack; do
cmd="$IPKG_INSTALL $p"
+echo "inst. $p" >> /tmp/update.log
echo "$cmd"
@@ -51,2 +57,2 @@ ipkg remove opie-update
echo "Starting Opie"
-`/etc/init.d/qpe start`
+`/etc/init.d/opie start`