]> git.deb.at Git - pkg/beep.git/blobdiff - beep.c
Imported Debian patch 1.2.2-18
[pkg/beep.git] / beep.c
diff --git a/beep.c b/beep.c
index 814a0b31f245ca22c83c4ce2bd4a5246b0358fb0..e421e8fe60f4aef01db726467597b300de579594 100644 (file)
--- a/beep.c
+++ b/beep.c
@@ -276,9 +276,8 @@ void play_beep(beep_parms_t parms) {
   if(console_device)
     console_fd = open(console_device, O_WRONLY);
   else
-    if((console_fd = open("/dev/input/event0", O_WRONLY)) == -1)
-      if((console_fd = open("/dev/tty0", O_WRONLY)) == -1)
-       console_fd = open("/dev/vc/0", O_WRONLY);
+    if((console_fd = open("/dev/tty0", O_WRONLY)) == -1)
+      console_fd = open("/dev/vc/0", O_WRONLY);
       
   if(console_fd == -1) {
     fprintf(stderr, "Could not open %s for writing\n",