Hi,usleep seems to be redhat/suse specific feature, so it's safer to simply use sleep instead. The attached patch does that.
Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
diff --git a/scripts/beep_hilo b/scripts/beep_hilo
index f19dbbd..0312b77 100755
--- a/scripts/beep_hilo
+++ b/scripts/beep_hilo
@@ -27,7 +27,7 @@
. ${0%/*}/helper_functions # `dirname $0`/helper_functions
echo -en "\033[10;1760]\a\033[10;1397]" > /dev/tty0
-usleep 100000
+sleep 0.1
echo -en '\a\033[10;440]' > /dev/tty0
$SCRIPT_RETURN $EV_ID 0 "beep_hilo finished"
diff --git a/scripts/beep_lohi b/scripts/beep_lohi
index 3849e46..c90421b 100755
--- a/scripts/beep_lohi
+++ b/scripts/beep_lohi
@@ -27,7 +27,7 @@
. ${0%/*}/helper_functions # `dirname $0`/helper_functions
echo -en "\033[10;1397]\a\033[10;1760]" > /dev/tty0
-usleep 100000
+sleep 0.1
echo -en '\a\033[10;440]' > /dev/tty0
$SCRIPT_RETURN $EV_ID 0 "beep_lohi finished"
diff --git a/scripts/notify b/scripts/notify
index 006f8d0..e22a8c9 100755
--- a/scripts/notify
+++ b/scripts/notify
@@ -60,7 +60,7 @@ for x in ${NOTIFY_METHOD:-notify_popup_fallback notify_acoustic}; do
notify_acoustic)
( for y in . . . ; do
echo -en "\007" > /dev/tty0
- usleep 500000
+ sleep 0.5
done ) &
;;
none) # do nothing
signature.asc
Description: OpenPGP digital signature
_______________________________________________ powersave-devel mailing list [email protected] http://forge.novell.com/mailman/listinfo/powersave-devel
