Date: Fri, 22 Sep 2000 18:22:08 -0700 (PDT) From: dannyman@tellme.com To: FreeBSD-gnats-submit@freebsd.org Subject: conf/21489: /etc/pccard_ether feature request Message-ID: <20000923012208.784F171658@never.tellme.com>
next in thread | raw e-mail | index | archive | help
>Number: 21489
>Category: conf
>Synopsis: /etc/pccard_ether feature request
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Sep 22 18:30:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: dannyman
>Release: FreeBSD 4.1-RELEASE i386
>Organization:
Tellme Networks
>Environment:
>Description:
In trying to get my WaveLAN card to work, I found I needed to change a default
config with wicontrol prior to configuring the interface. I wanted to do this
at bootup so I hacked /etc/pccard_ether to read a variable,
pccard_preconfig_wi0, out of rc.conf, to run the "preconfig" command prior to
attempting dhclient. This struck me as the "right" way and I thought I'd send
my diff in so that something like this could be considered for commit in to
the source tree.
>How-To-Repeat:
>Fix:
Diffs:
*** /etc/pccard_ether.orig Fri Sep 22 09:25:18 2000
--- /etc/pccard_ether Fri Sep 22 09:53:12 2000
***************
*** 19,24 ****
--- 19,29 ----
interface=$1
shift
+ eval pccard_preconfig=\$pccard_preconfig_${interface}
+ if [ -n "${pccard_preconfig}" ]; then
+ ${pccard_preconfig}
+ fi
+
case ${pccard_ifconfig} in
[Nn][Oo] | '')
;;
*** /etc/defaults/rc.conf.orig Fri Sep 22 09:29:16 2000
--- /etc/defaults/rc.conf Fri Sep 22 09:32:56 2000
***************
*** 29,34 ****
--- 29,35 ----
pccard_ifconfig="NO" # Specialized pccard ethernet configuration (or NO).
pccardd_flags="" # Additional flags for pccardd.
pccard_conf="/etc/defaults/pccard.conf" # pccardd(8) config file
+ #pccard_preconfig_wi0="/usr/sbin/wicontrol -i wi0 -p 1" # specialized startup for pccard ethernet
local_startup="/usr/local/etc/rc.d /usr/X11R6/etc/rc.d" # startup script dirs.
local_periodic="/usr/local/etc/periodic /usr/X11R6/etc/periodic" # periodic script dirs
rc_conf_files="/etc/rc.conf /etc/rc.conf.local"
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000923012208.784F171658>
