Subject: Re: serial console reboots (disabling stop-a abort)
To: None <port-sparc@NetBSD.org>
From: imtarget <sparce@imtarget.cotse.net>
List: port-sparc
Date: 09/22/2003 01:42:13
Eduardo Horvath said:
> On Tue, Sep 16, 2003 at 10:26:06AM -0400, imtarget wrote:
>> Wise NetBSD'ers:
>>
>> I've a sparc5/NetBSD 1.6.1 firewall running headless, with a serial
>> console on a windows atrocity. Because of the nature of the beast, the
>> win machine must be rebooted almost weekly for security updates. Each
>> reboot sends a break across the serial line, dropping the firewall
>> into OpenProm. Which is an enormously bad place for a firewall to be.
>>
>> In Solaris, I could set a line in /etc/system like "set
>> abort_enable=0" which would prevent a console break from being
>> interpreted as Stop-A. My cursory review of available literature and
>> list archives didn't turn up anything similar for NetBSD. Although I
>> confess to being out of my depth somewhat with the cnmagic
>> documentation.
>>
>>  - Is there a similar setting to "set abort_enable=0" for NetBSD
>> (perhaps
>> an /etc/sysctl.conf setting for hw.cnmagic?)
>
> Yes, setting hw.cnmagic to some other value in /etc/sysctl.conf should
> do it, assuming the driver for your console device is cnmagic-aware.  (I
> beleive the zs driver should be using cnmagic.)
>
> Eduardo

Thanks, that solution worked quite well. I added the following lines to my
sysctl.conf:

# Change break sequence to drop into OpenProm to (hopefully) unlikely one
hw.cnmagic=^S^Ss^A

And now I need 3 control characters and an ess to break. Nice feature.

sparce