diff options
Diffstat (limited to 'recipes/slugos-init/files')
-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 |