From owner-freebsd-stable Fri Sep 6 13:13:14 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0925437B400 for ; Fri, 6 Sep 2002 13:13:10 -0700 (PDT) Received: from frodo.galgenberg.net (galgenberg.net [132.187.222.250]) by mx1.FreeBSD.org (Postfix) with SMTP id 8B1CD43E72 for ; Fri, 6 Sep 2002 13:13:08 -0700 (PDT) (envelope-from q@uni.de) Received: (qmail 56129 invoked by uid 85); 6 Sep 2002 20:13:07 -0000 Received: from unknown (HELO roadrunner) (132.187.222.7) by galgenberg.net with SMTP; 6 Sep 2002 20:13:04 -0000 From: Ulrich 'Q' Spoerlein To: freebsd-stable@FreeBSD.ORG Subject: Request for alternative CTRL-ATL-DEL behaviour Date: Fri, 06 Sep 2002 22:13:03 +0200 Organization: Hier koennte Ihre Werbung stehen! Message-ID: X-Mailer: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hi there, if this has been already discussed intensivly, please give me a pointer. I think it would be nice to have a kernel option or sysctl variable which changes what signal init gets when ctrl-atl-del is pressed. right now i'm using this patch to have my machines power off instead of reboot. --- sys/kern/kern_shutdown.c.orig Thu May 2 12:45:21 2002 +++ sys/kern/kern_shutdown.c Thu May 2 12:45:36 2002 @@ -162,7 +162,7 @@ /* Send a signal to init(8) and have it shutdown the world */ if (initproc != NULL) { - psignal(initproc, SIGINT); + psignal(initproc, SIGUSR2); } else { /* No init(8) running, so simply reboot */ boot(RB_NOSYNC); man init will show the available signals for init. if i had a better understanding of C and config and stuff i would have made a real patch, but i'm unable to do so and hope somebody out there will implement the necessary steps to have this thing user-controlable. and while you are at it ;] since all pre-ATX machines can't power down themselves it would be nice to have init make three beeps or something when it's ready for power off. this would be very helpful at machines which don't have a monitor attached. right now i have to ctrl-alt-del this machine then wait 3-5 minutes and hope everything shut down so i can finally flip the switch. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message