From 26b1e968669865d31ed0b53d048d989e93519e45 Mon Sep 17 00:00:00 2001 From: Mike Westerhof Date: Sun, 5 Apr 2009 22:05:27 -0500 Subject: SlugOS: leds - fix logic to attempt to beep even if udev hasn't yet run. --- recipes/slugos-init/files/leds | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'recipes/slugos-init/files') diff --git a/recipes/slugos-init/files/leds b/recipes/slugos-init/files/leds index 68f0c23a98..b1f6e126b4 100644 --- a/recipes/slugos-init/files/leds +++ b/recipes/slugos-init/files/leds @@ -198,6 +198,11 @@ beep(){ break fi done + # If udev hasn't run, then /dev/input doesn't exist, so + # fallback to /dev/buzzer if possible. + if test -e /dev/buzzer -a ! -d /dev/input; then + arg="-e /dev/buzzer" + fi /bin/beep $arg "$@" 2>/dev/null fi return 0 -- cgit v1.2.3