From owner-freebsd-questions@FreeBSD.ORG Fri Jan 26 22:45:14 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0191A16A402 for ; Fri, 26 Jan 2007 22:45:13 +0000 (UTC) (envelope-from redchin@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.168]) by mx1.freebsd.org (Postfix) with ESMTP id 7C5F613C48A for ; Fri, 26 Jan 2007 22:45:09 +0000 (UTC) (envelope-from redchin@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so771093uge for ; Fri, 26 Jan 2007 14:45:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mxHqQymjxSfb6czCWkvaw/+mIuHNSV1GaPNqJlKChcSjsx8pOKTxcNVlvQMwxaUqqqs2nl0At5SWeDLy4ZVeMqRytmaaTgnL5gPTHJg7p+zlNnyg0fZMkt0639Vf9bZhjSATHJMorr7dqAOrMMyY6ctLmykOBPPm7Z2/b0a3et0= Received: by 10.82.120.14 with SMTP id s14mr2259489buc.1169851507976; Fri, 26 Jan 2007 14:45:07 -0800 (PST) Received: by 10.82.118.14 with HTTP; Fri, 26 Jan 2007 14:45:07 -0800 (PST) Message-ID: <1d3ed48c0701261445m5d8612adn9b72ad5b8a1987d6@mail.gmail.com> Date: Fri, 26 Jan 2007 14:45:07 -0800 From: "Kevin Downey" To: "Jonathan Horne" In-Reply-To: <200701261636.37517.freebsd@dfwlp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200701261636.37517.freebsd@dfwlp.com> Cc: freebsd-questions@freebsd.org Subject: Re: run a command on startup 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, 26 Jan 2007 22:45:14 -0000 On 1/26/07, Jonathan Horne wrote: > i have a box that my nic's eeprom got zapped last night. WOL is a must for > me, and as a last ditch, i finally have the card talking again if i set a mac > address manually. upon shutdown, apparently it remember the address i set, > and answers to a WOL packet. also, it appears to immediately forget the mac > that was set when the computer starts, because when i get back to the login, > the ifconfig shows the mac to be 00:00:00:00:00:00 again, and i have > to 'ifconfig fxp0 ether [mad address]' after each boot. > > where can i stick that command so its run during boot up, maybe preferable > before the network configuration is loaded? > > strangely enough, even when the mac address is 00's, i can still ping around > my lan (i didnt think this was possible without a mac address) > > thanks, > jonathan > you can put "ether [mac address]" in fxp0's ifconfig line in /etc/rc.conf ifconfig_fxp0="ether [mac address]" -- The biggest problem with communication is the illusion that it has occurred.