[opensuse] Making my system beep at completed runlevel?
Hi all. I have a "headless black box" in a closet that i fiddle around with quite a lot, and its a bit annoying not knowing when it has rebooted properly and is ready for service. I think it was the "Smoothwall" firewall that beeped me when it botted up and was running. But i never got the hang of how. I did a google on "how to make beeps at startup", and the onlything i came up with is the command "beep". But if i run it nothing happens??? No sound, nada. All i want is the machine to make a few beeps as it is finnished entering runlevel 3 (My default RL for that one) There is no soundcard in it, so running esd, alsa or anything else is out of the question. -- /Rikard ----------------------------------------------------------------------------- email : rikard.j@rikjoh.com web : http://www.rikjoh.com mob: : +46 (0)763 19 76 25 ------------------------ Public PGP fingerprint ---------------------------- < 15 28 DF 78 67 98 B2 16 1F D3 FD C5 59 D4 B6 78 46 1C EE 56 >
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2007-07-21 at 11:29 +0200, Rikard Johnels wrote:
I did a google on "how to make beeps at startup", and the onlything i came up with is the command "beep". But if i run it nothing happens??? No sound, nada.
¿No beeper in the box? Check the cabling.
All i want is the machine to make a few beeps as it is finnished entering runlevel 3 (My default RL for that one)
Insert it in "/etc/init.d/after.local". But you have got to find a way to "beep". Have a look at /etc/init.d/halt; it uses: echo -en "\033[10;393]\a\033[10;262]" or: for tone in 524 491 440 393 349 328 295 ; do echo -en "\033[10;${tone}]\a" usleep 125000 done echo -en "\033[10;262]" All this things assume a console, by the way, but should work with no monitor, I suppose.
There is no soundcard in it, so running esd, alsa or anything else is out of the question.
I use this call: cat /usr/share/sounds/au/hal9.au > /dev/audio & but you need a soundcard. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFGoec+tTMYHG2NR9URAgeZAJwNd9mPqroZTCQzRZ0A+tAwSRncgwCdFj0x 52uFJP0TuQr+9EHXkgsARFc= =r0AG -----END PGP SIGNATURE-----
participants (2)
-
Carlos E. R.
-
Rikard Johnels