[Debian-eeepc-commits] [SCM] Maintenance of eeepc-acpi-scripts debian package branch, master, updated. 1.1.5-46-gecd5adf
Damyan Ivanov
dmn at debian.org
Tue Apr 13 14:53:28 UTC 2010
The following commit has been merged in the master branch:
commit ecd5adf852d1728a19c4ddee4ff970695a9de98a
Author: Damyan Ivanov <dmn at debian.org>
Date: Tue Apr 13 17:53:06 2010 +0300
notify: avoid staircase effect on the console
'echo' only appends a line feed, but the console also needs a carriage return.
Thanks to Trent W. Buck for reporting and testing.
diff --git a/debian/changelog b/debian/changelog
index dd09443..91cdc86 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
eeepc-acpi-scripts (1.1.11) UNRELEASED; urgency=low
- *
+ * notify: avoid staircase effect when sending notifications to the console.
+ Thanks to Trent W. Buck for reporting and testing.
-- Damyan Ivanov <dmn at debian.org> Tue, 13 Apr 2010 17:51:03 +0300
diff --git a/etc/acpi/lib/notify.sh b/etc/acpi/lib/notify.sh
index b476b53..d602e91 100644
--- a/etc/acpi/lib/notify.sh
+++ b/etc/acpi/lib/notify.sh
@@ -12,7 +12,8 @@ notify() {
echo "$MSG" # for /var/log/acpid
if [ ! -S /tmp/.X11-unix/X0 ]; then
- echo "$MSG" > /dev/console
+ # echo's behaviour wrt "\r" is shell-dependent
+ printf "$MSG\r\n" > /dev/console
return
fi
--
Maintenance of eeepc-acpi-scripts debian package
More information about the Debian-eeepc-commits
mailing list