On Tuesday 20 October 2015 20:48:22 Alan McKinnon wrote:
>On 20/10/2015 19:57, Marc Joliet wrote:
>> On Tuesday 20 October 2015 19:22:48 Matthias Gerstner wrote:
>>> Hi Alan,
>>> 
>>>> I simply want to disable that one particular beeping at shutdown time.
>>> 
>>> well this topic made me curious where the beep is coming from.
>>> 
>>> It does originate from the shutdown command itself which is part of the
>>> sys-apps/sysvinit package. In this package's source you find can a file
>>> "src/dowall.c", where you will in turn find a function "wall(...)".
>>> 
>>> This is the function where the warning messages will be produced that
>>> show up in the terminal and the message is produced like this:
>>> 
>>> snprintf(line, sizeof(line),
>>> 
>>>     "\007\r\nBroadcast message from %s@%s %s(%s):\r\n\r\n",
>>>     user, hostname, tty, date);
>>> 
>>> The "\007" is the beep you're getting. It's a bell character that you
>>> can produce manually by doing this, too:
>>> 
>>> echo -e "\007"
>>> 
>>> Unfortunately the bell character is hard coded into the warning message.
>>> Also there seems to be no way to suppress the warning message.
>> 
>> [...]
>> 
>> If it's caused by the call to wall(), then maybe the --no-wall option to
>> shutdown will help?
>
>I don't have that option in my ~arch shutdown

*Sigh* then it's probably unique to systemd[sysv-utils].  Sorry for not 
thinking about that.

-- 
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to