From owner-cvs-all@FreeBSD.ORG Mon Sep 29 07:19:16 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5881D16A4B3; Mon, 29 Sep 2003 07:19:16 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAC3C44011; Mon, 29 Sep 2003 07:19:15 -0700 (PDT) (envelope-from edwin@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.9/8.12.9) with ESMTP id h8TEJFXJ070861; Mon, 29 Sep 2003 07:19:15 -0700 (PDT) (envelope-from edwin@repoman.freebsd.org) Received: (from edwin@localhost) by repoman.freebsd.org (8.12.9/8.12.9/Submit) id h8TEJF0N070860; Mon, 29 Sep 2003 07:19:15 -0700 (PDT) (envelope-from edwin) Message-Id: <200309291419.h8TEJF0N070860@repoman.freebsd.org> From: Edwin Groothuis Date: Mon, 29 Sep 2003 07:19:15 -0700 (PDT) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: ports/sysutils/eject Makefileports/sysutils/eject/files patch-aa X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2003 14:19:16 -0000 edwin 2003/09/29 07:19:15 PDT FreeBSD ports repository Modified files: sysutils/eject Makefile sysutils/eject/files patch-aa Log: making sysutils/eject understand cdrom argument The sysutils/eject port is quite useful to eject those cdroms and other removeable media. However, you need to know the "real" name of the device in order to eject it. Indeed, eject(1), given a "arg" argument tries to eject from the "/dev/argc" device, which is good, but could be better. The attached patch makes it look around a bit more, first in /dev/arg, then /dev/argc and just plain ./arg. Also, if the file found is a symlink, the patch makes eject unfold the link to find what device is behind it so it can umount it correctly. PR: ports/51008 Submitted by: The Anarcat Revision Changes Path 1.5 +1 -0 ports/sysutils/eject/Makefile 1.3 +32 -12 ports/sysutils/eject/files/patch-aa