From owner-freebsd-questions Mon Nov 18 13:12:30 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C785D37B401 for ; Mon, 18 Nov 2002 13:12:29 -0800 (PST) Received: from jive.SoftHome.net (jive.SoftHome.net [66.54.152.27]) by mx1.FreeBSD.org (Postfix) with SMTP id D7FCE43E3B for ; Mon, 18 Nov 2002 13:12:28 -0800 (PST) (envelope-from ertank@softhome.net) Received: (qmail 27236 invoked by uid 417); 18 Nov 2002 21:12:18 -0000 Received: from slide-.softhome.net (HELO softhome.net) (172.16.2.21) by shunt-smtp-out-0 with SMTP; 18 Nov 2002 21:12:18 -0000 Received: from localhost (localhost [127.0.0.1]) (uid 417) by softhome.net with local; Mon, 18 Nov 2002 14:12:18 -0700 From: ertank@softhome.net To: freebsd-questions@freebsd.org Subject: shutdown with power button Date: Mon, 18 Nov 2002 14:12:18 -0700 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Sender: ertank@softhome.net X-Originating-IP: [212.252.6.204] Message-ID: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I want to learn if there is a way to make the system shutdown with the key on the case. I searched the mailing list but could not find a solution. Also, man apm and man apmd does not have some option for me that I could find. My problem is if I press the case power key, system just cuts the power off. And, this yields to a fsck on the next boot. I want the system to issue 'shutdown -p now' command if somebody accidentally presses the power key of the case. Best Regards, -- Ertan Kucukoglu ertank@softhome.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message