[pkg-fso-maint] install.sh: OpenMoko's Wiki mentions a problem

Steffen Moeller steffen_moeller at gmx.de
Fri Feb 6 23:02:36 UTC 2009


Hello list,

On http://wiki.openmoko.org/wiki/Debian#Problem_with_usage_install.sh
I found this text:
If partition table creation passes with an error use the following patch:

--- install.sh	2009-01-19 17:36:26.000000000 +0300
+++ install_good.sh	2009-01-19 17:44:51.000000000 +0300
@@ -405,9 +405,9 @@

 echo " * Waiting for partitions to appear"
 SLEEP_SECONDS=3
-while ! ([ "$SINGLE_PART" = "true" ] && test -e ${SD_DEVICE}p1) ||\
-	test -e ${SD_DEVICE}p1 -a -e ${SD_DEVICE}p2; do
-	if [ "$SLEEP_SECONDS" = 15 ]; then
+while ! (([ "$SINGLE_PART" = "true" ] && test -e ${SD_DEVICE}p1) ||\
+	test -e ${SD_DEVICE}p1 -a -e ${SD_DEVICE}p2); do
+	if [ "$SLEEP_SECONDS" = 30 ]; then
 		echo "E: Partitioning has failed, partitions have not been created"
 		exit 1
 	fi
@@ -598,7 +598,7 @@
 rootfs	/		auto	defaults,errors=remount-ro,noatime	0 1
 __END__

-if ![ "$SINGLE_PART" = "true" ]; then
+if [ "$SINGLE_PART" != "true" ]; then
 cat >> $INST_DIR/etc/fstab <<__END__
 /dev/mmcblk0p1	/boot	auto	defaults,noatime			0 2
 __END__



The second part reminds me of what I had suggested myself, the top bits leave no doubt
that the ! is supposed to act on the whole statement, not only until the "||". I am logged
in to those wiki pages at the very moment and would just remove that para once you tell me so.


Greetings,

Steffen



More information about the pkg-fso-maint mailing list