diff options
author | Mike Westerhof <mwester@dls.net> | 2009-04-05 22:05:27 -0500 |
---|---|---|
committer | Mike Westerhof <mwester@dls.net> | 2009-04-05 22:05:27 -0500 |
commit | 26b1e968669865d31ed0b53d048d989e93519e45 (patch) | |
tree | 73ab952526e46b94b0bca43d427b69a99140e6f2 /recipes/slugos-init/files/leds | |
parent | 1292d50926c3a412c7c4e8720170f493a0f5ab8e (diff) |
SlugOS: leds - fix logic to attempt to beep even if udev hasn't yet run.
Diffstat (limited to 'recipes/slugos-init/files/leds')
-rw-r--r-- | recipes/slugos-init/files/leds | 5 |
1 files changed, 5 insertions, 0 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 |