pccard_ether (165011) | pccard_ether (179961) |
---|---|
1#!/bin/sh - 2# | 1#!/bin/sh - 2# |
3# $FreeBSD: head/etc/pccard_ether 165011 2006-12-08 15:48:42Z hrs $ | 3# $FreeBSD: head/etc/pccard_ether 179961 2008-06-23 20:50:11Z mtm $ |
4# 5# pccard_ether interfacename [start|stop|restart] 6# 7# example: pccard_ether fxp0 start 8# 9 10. /etc/rc.subr 11. /etc/network.subr --- 61 unchanged lines hidden (view full) --- 73 for uif in `ifconfig -ul`; do 74 if [ "${uif}" = "${ifn}" ]; then 75 # Interface is already up, so ignore it. 76 exit 0 77 fi 78 done 79 fi 80 | 4# 5# pccard_ether interfacename [start|stop|restart] 6# 7# example: pccard_ether fxp0 start 8# 9 10. /etc/rc.subr 11. /etc/network.subr --- 61 unchanged lines hidden (view full) --- 73 for uif in `ifconfig -ul`; do 74 if [ "${uif}" = "${ifn}" ]; then 75 # Interface is already up, so ignore it. 76 exit 0 77 fi 78 done 79 fi 80 |
81 /etc/rc.d/netif start $ifn | 81 /etc/rc.d/netif quietstart $ifn |
82 83 # Do route configuration if needed. 84 # XXX: should probably do this by calling rc.d/routing. 85 if [ -n "`ifconfig_getargs $ifn`" ]; then 86 if ! dhcpif $ifn; then 87 setup_routes 88 fi 89 fi --- 4 unchanged lines hidden (view full) --- 94pccard_ether_stop() 95{ 96 if [ -n "`ifconfig_getargs $ifn`" ]; then 97 if ! dhcpif $ifn; then 98 remove_routes 99 fi 100 fi 101 | 82 83 # Do route configuration if needed. 84 # XXX: should probably do this by calling rc.d/routing. 85 if [ -n "`ifconfig_getargs $ifn`" ]; then 86 if ! dhcpif $ifn; then 87 setup_routes 88 fi 89 fi --- 4 unchanged lines hidden (view full) --- 94pccard_ether_stop() 95{ 96 if [ -n "`ifconfig_getargs $ifn`" ]; then 97 if ! dhcpif $ifn; then 98 remove_routes 99 fi 100 fi 101 |
102 /etc/rc.d/netif stop $ifn | 102 /etc/rc.d/netif quietstop $ifn |
103 104 # clean ARP table 105 ifexists $ifn && arp -d -i $ifn -a 106} 107 108pccard_ether_restart() 109{ 110 # Hand implemented because the default implementation runs --- 16 unchanged lines hidden --- | 103 104 # clean ARP table 105 ifexists $ifn && arp -d -i $ifn -a 106} 107 108pccard_ether_restart() 109{ 110 # Hand implemented because the default implementation runs --- 16 unchanged lines hidden --- |