diff options
author | Stephanie J. Lockwood-Childs <wormo@gentoo.org> | 2006-08-26 07:23:19 +0000 |
---|---|---|
committer | Stephanie J. Lockwood-Childs <wormo@gentoo.org> | 2006-08-26 07:23:19 +0000 |
commit | d220d24b459d762de5b29fe3df79ed56bfaf457f (patch) | |
tree | fe95ea46b0a59c038909eeb49469d75178a0b0fc /app-laptop/pbbuttonsd/files | |
parent | modX deps from coin-2.4.5 (diff) | |
download | historical-d220d24b459d762de5b29fe3df79ed56bfaf457f.tar.gz historical-d220d24b459d762de5b29fe3df79ed56bfaf457f.tar.bz2 historical-d220d24b459d762de5b29fe3df79ed56bfaf457f.zip |
Make laptopmode.sh always respect noatime option in fstab... did not revbump
because most users probably won't want to rebuild just for this fix.
Thanks to Eugene Surovegin who was observant to notice the bug (Bug #126001)
Package-Manager: portage-2.1-r2
Diffstat (limited to 'app-laptop/pbbuttonsd/files')
-rw-r--r-- | app-laptop/pbbuttonsd/files/pbbuttonsd-laptopmode-noatime.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app-laptop/pbbuttonsd/files/pbbuttonsd-laptopmode-noatime.patch b/app-laptop/pbbuttonsd/files/pbbuttonsd-laptopmode-noatime.patch new file mode 100644 index 000000000000..8e02c71a65a7 --- /dev/null +++ b/app-laptop/pbbuttonsd/files/pbbuttonsd-laptopmode-noatime.patch @@ -0,0 +1,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" |