| Summary: | FreeBSD 6.0 /etc/pccard_ether doesn't set route correctly | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Jürgen Lesny <x> | ||||
| Component: | misc | Assignee: | Brooks Davis <brooks> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | Unspecified | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
This change is bogus. ifscript_up/down is called in /etc/rc.d/netif. I suspect your interface was already partially configured and thus the netmask test was causing netif not be be run. -- Brooks State Changed From-To: open->closed Appears to be pilot error, not a bug. Responsible Changed From-To: freebsd-bugs->brooks I'm working on pccard_ether these days. |
I configure my WLAN-Card with following /etc/start_if.wi0 ifconfig_wi0="192.168.1.99 channel 13 ssid ABC wepmode on weptxkey 1 wepkey 1:0x0123456789 stationname ZYX" defaultrouter="192.168.1.1" when I plug my Card, the interface is set correctly, but the route is missing After debugging /etc/pccard_ether, I noticed that /etc/start_if.$ifn is not included for the routing Subroutines I added the function ifscript_up from /etc/network.subr and it worked fine Fix: Use this patch: case ${startstop} in [Ss][Tt][Aa][Rr][Tt] | '') + ifscript_up $ifn if [ -x /usr/bin/grep ]; then if ifconfig $ifn | grep -s netmask > /dev/null 2>&1; then # Interface is already up, so ignore it. *************** # Stop the interface [Ss][Tt][Oo][Pp]) + ifscript_down $ifn if [ -n "`ifconfig_getargs $ifn`" ]; then if ! dhcpif $ifn; then remove_routes--9vKn3V9DEY7XBOQkw8l0PUgYQEY7ISQbVM7LLXlpA1Cd07wc Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" *** pccard_ether.orig Wed Nov 9 13:05:19 2005 --- pccard_ether Wed Nov 9 13:19:07 2005 *************** *** 70,75 **** --- 70,76 ---- How-To-Repeat: 1. configure your Interface manually with /etc/start_if.XX 2a. plug your Ethernet/WLAN Card 2b. or do ifconfig XX delete ; /etc/pccard_ether XX start