From owner-freebsd-questions@FreeBSD.ORG Sat Jan 27 01:46:04 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 5F2B916A402 for ; Sat, 27 Jan 2007 01:46:04 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from regulus.dfwlp.com (rrcs-64-183-212-244.sw.biz.rr.com [64.183.212.244]) by mx1.freebsd.org (Postfix) with ESMTP id 1378313C48C for ; Sat, 27 Jan 2007 01:46:01 +0000 (UTC) (envelope-from freebsd@dfwlp.com) Received: from athena.dfwlp.com (athena.dfwlp.com [192.168.125.83]) (authenticated bits=0) by regulus.dfwlp.com (8.13.8/8.13.8) with ESMTP id l0R1jxWQ008393 for ; Fri, 26 Jan 2007 19:45:59 -0600 (CST) (envelope-from freebsd@dfwlp.com) From: Jonathan Horne To: freebsd-questions@freebsd.org Date: Fri, 26 Jan 2007 19:45:59 -0600 User-Agent: KMail/1.9.5 References: <200701261636.37517.freebsd@dfwlp.com> <1d3ed48c0701261445m5d8612adn9b72ad5b8a1987d6@mail.gmail.com> In-Reply-To: <1d3ed48c0701261445m5d8612adn9b72ad5b8a1987d6@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200701261945.59523.freebsd@dfwlp.com> X-Spam-Status: No, score=-4.4 required=3.6 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.7 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on regulus.dfwlp.com 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: Sat, 27 Jan 2007 01:46:04 -0000 On Friday 26 January 2007 16:45, Kevin Downey wrote: > 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]" well, unfortunately, that didnt work. # -- sysinstall generated deltas -- # Mon Jan 22 15:32:44 2007 # Created: Mon Jan 22 15:32:44 2007 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. defaultrouter="192.168.125.1" hostname="pollux.dfwlp.com" ifconfig_fxp0="ether 00:09:6b:b6:3e:d9" ifconfig_fxp0="inet 192.168.125.71 netmask 255.255.255.128" inetd_enable="YES" sshd_enable="YES" usbd_enable="YES" pollux# ifconfig fxp0 fxp0: flags=8843 mtu 1500 options=8 inet 192.168.125.71 netmask 0xffffff80 broadcast 192.168.125.127 ether 00:00:00:00:00:00 media: Ethernet autoselect (100baseTX ) status: active is there another way to skin this cat? thanks, jonathan