From owner-freebsd-questions@FreeBSD.ORG Fri Oct 7 22:01:44 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 23BEC16A41F for ; Fri, 7 Oct 2005 22:01:44 +0000 (GMT) (envelope-from freebsd@philip.pjkh.com) Received: from wolf.pjkh.com (wolf.pjkh.com [66.228.196.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id C86F943D46 for ; Fri, 7 Oct 2005 22:01:43 +0000 (GMT) (envelope-from freebsd@philip.pjkh.com) Received: from localhost (localhost [127.0.0.1]) by wolf.pjkh.com (Postfix) with ESMTP id A3DA31726D for ; Fri, 7 Oct 2005 15:01:39 -0700 (PDT) Received: from wolf.pjkh.com ([127.0.0.1]) by localhost (wolf.pjkh.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 40338-09 for ; Fri, 7 Oct 2005 15:01:39 -0700 (PDT) Received: by wolf.pjkh.com (Postfix, from userid 1000) id 24AF91726B; Fri, 7 Oct 2005 15:01:39 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by wolf.pjkh.com (Postfix) with ESMTP id 1D4C717268 for ; Fri, 7 Oct 2005 15:01:39 -0700 (PDT) Date: Fri, 7 Oct 2005 15:01:39 -0700 (PDT) From: Philip Hallstrom To: freebsd-questions@freebsd.org Message-ID: <20051007145730.W41030@wolf.pjkh.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: amavisd-new at pjkh.com Subject: How can I programatically eject a live cd? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Oct 2005 22:01:44 -0000 Hi all - I've built a live CDROM based off of the cdroot package and 4.x. It's designed to be popped into a machine, wipe the hard drive, install a custom image, and that's it. Everything works great with one exception. I would *love* to be able to have the CDROM automatically eject when it's finished (and/or shutdown). This way a user could power on a headless box, pop in the cd, reboot, let it's do it's thing and know it was done when the CDROM ejected. I know the drives can do it because I've seen some other CD's (most recent a seagate disk utility) do it. But the closest I can come is: cdcontrol -f acd0 eject and then I can press the eject button and it will eject. This is fine for me, but I don't want the people doing this to have to know to wait for the disk lights to stop. Any suggestions? Thanks! -philip