X-Git-Url: https://git.deb.at/w?p=pkg%2Fbeep.git;a=blobdiff_plain;f=beep.c;h=e421e8fe60f4aef01db726467597b300de579594;hp=814a0b31f245ca22c83c4ce2bd4a5246b0358fb0;hb=37ef60ac9891a4bddc7d6a4bdba24837e10abd0f;hpb=af0b92b12831800bd50da166c187620d18c969b2 diff --git a/beep.c b/beep.c index 814a0b3..e421e8f 100644 --- 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",