There's another bashism left in
usr/share/laptop-mode-tools/modules/laptop-mode (see patch).
diff -Nurp laptop-mode-tools-1.42.orig/usr/share/laptop-mode-tools/modules/laptop-mode laptop-mode-tools-1.42/usr/share/laptop-mode-tools/modules/laptop-mode
--- laptop-mode-tools-1.42.orig/usr/share/laptop-mode-tools/modules/laptop-mode	2008-05-12 15:28:57.000000000 +0200
+++ laptop-mode-tools-1.42/usr/share/laptop-mode-tools/modules/laptop-mode	2008-06-04 11:39:13.000000000 +0200
@@ -244,7 +244,7 @@ if [ "$ACTIVATE_WITH_POSSIBLE_DATA_LOSS"
 						PARSEDOPTS="$(remove_numeric_mount_option commit "$OPTS")"
 						echo "Executing: mount $DEV -t $FST $MP -o remount,$PARSEDOPTS,commit=$MAX_LOST_WORK_SECONDS$NOATIME_OPT" >> $OUTPUT
 						if (! mount $DEV -t $FST $MP -o remount,$PARSEDOPTS,commit=$MAX_LOST_WORK_SECONDS$NOATIME_OPT) ; then
-							if [ "$FST" == "ext3" -a "$MP" == "/" ] ; then
+							if [ "$FST" = "ext3" -a "$MP" = "/" ] ; then
 								echo "BIG FAT WARNING: Your root filesystem mounted as ext3 seems to lack support for"
 								echo "the commit mount option. This usually means that your root filesystem is"
 								echo "mounted as ext2 because there is no ext3 support in the kernel at boot time,"

Reply via email to