summaryrefslogtreecommitdiff
path: root/recipes/slugos-init
diff options
context:
space:
mode:
authorMike Westerhof <mwester@dls.net>2009-04-05 22:05:27 -0500
committerMike Westerhof <mwester@dls.net>2009-04-05 22:05:27 -0500
commit26b1e968669865d31ed0b53d048d989e93519e45 (patch)
tree73ab952526e46b94b0bca43d427b69a99140e6f2 /recipes/slugos-init
parent1292d50926c3a412c7c4e8720170f493a0f5ab8e (diff)
SlugOS: leds - fix logic to attempt to beep even if udev hasn't yet run.
Diffstat (limited to 'recipes/slugos-init')
-rw-r--r--recipes/slugos-init/files/leds5
-rw-r--r--recipes/slugos-init/slugos-init_5.0.bb2
2 files changed, 6 insertions, 1 deletions
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
diff --git a/recipes/slugos-init/slugos-init_5.0.bb b/recipes/slugos-init/slugos-init_5.0.bb
index beeaa34135..bf3bb6fee8 100644
--- a/recipes/slugos-init/slugos-init_5.0.bb
+++ b/recipes/slugos-init/slugos-init_5.0.bb
@@ -4,7 +4,7 @@ PRIORITY = "required"
LICENSE = "GPL"
DEPENDS = "base-files devio"
RDEPENDS = "busybox devio"
-PR = "r10"
+PR = "r11"
SRC_URI = "file://boot/flash \
file://boot/disk \