summaryrefslogtreecommitdiff
blob: 8e02c71a65a7dd57962734dc1e98b8fca287984a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ur pbbuttonsd-0.7.8.orig/scripts/scripts.d/laptopmode.sh pbbuttonsd-0.7.8/scripts/scripts.d/laptopmode.sh
--- pbbuttonsd-0.7.8.orig/scripts/scripts.d/laptopmode.sh	2006-07-31 04:51:40.000000000 -0700
+++ pbbuttonsd-0.7.8/scripts/scripts.d/laptopmode.sh	2006-08-25 18:48:40.000000000 -0700
@@ -63,7 +63,7 @@
 	PARSEDOPTS1="$(parse_nonumber_mount_opts $OPT $L_OPTS)"
 	PARSEDOPTS1="$(parse_nonumber_mount_opts no$OPT $PARSEDOPTS1)"
 	# Watch for a default atime in fstab
-	FSTAB_OPTS="$(cat /etc/fstab | sed 's/  / /g' | grep ^\ *"$L_DEV " | awk '{ print $4 }')"
+	FSTAB_OPTS="$(cat /etc/fstab | tr -s "[:blank:]" " " | grep ^\ *"$L_DEV " | awk '{ print $4 }')"
 	if [ -z "$(echo "$FSTAB_OPTS" | grep "$OPT")" ] ; then
 		# option not specified in fstab -- choose the default.
 		echo "$PARSEDOPTS1,$DEF_OPT"