# HG changeset patch
# User Florian Haas <[email protected]>
# Date 1274013675 -7200
# Node ID 25461978674a5e0a9fb551c189dde1dfab3649a7
# Parent  7d66d53e169f6bff8da1c1cabba0a0b0342f3a35
Low: AudibleAlarm: replace "echo -ne" with printf (Debian #581073)

Fix possible bashism.

diff -r 7d66d53e169f -r 25461978674a heartbeat/AudibleAlarm
--- a/heartbeat/AudibleAlarm    Sun May 16 14:40:22 2010 +0200
+++ b/heartbeat/AudibleAlarm    Sun May 16 14:41:15 2010 +0200
@@ -81,7 +81,7 @@
        # Use () to create a subshell to make the redirection be synchronized.
        ( while [ 1 ]; do 
                sleep 1  #Sleep first, incase we bail out
-               echo -ne "\a" > /dev/console 
+               printf "\a" > /dev/console
                # Uncomment this line to cause floppy drive light
                # to flash (requires fdutils package).
                # /usr/bin/floppycontrol --pollstate > /dev/null
@@ -136,7 +136,8 @@
 }
 
 audiblealarm_validate_all () {
-# Is there anything to check?
+       check_binary printf
+
        echo "Validate OK"
        return $OCF_SUCCESS
 }


_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to