atm1 (136224) | atm1 (165683) |
---|---|
1#!/bin/sh 2# 3# Copyright (c) 2000 The FreeBSD Project 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# | 1#!/bin/sh 2# 3# Copyright (c) 2000 The FreeBSD Project 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# |
27# $FreeBSD: head/etc/rc.d/atm1 136224 2004-10-07 13:55:26Z mtm $ | 27# $FreeBSD: head/etc/rc.d/atm1 165683 2006-12-31 10:37:18Z yar $ |
28# 29 30# PROVIDE: atm1 31# REQUIRE: root 32# BEFORE: netif 33# KEYWORD: nojail 34 35. /etc/rc.subr --- 7 unchanged lines hidden (view full) --- 43# 44# Initial interface configuration. 45# N.B. /usr is not mounted. 46# 47atm_start() 48{ 49 if [ -n "${natm_interfaces}" ] ; then 50 # Load the HARP pseudo interface | 28# 29 30# PROVIDE: atm1 31# REQUIRE: root 32# BEFORE: netif 33# KEYWORD: nojail 34 35. /etc/rc.subr --- 7 unchanged lines hidden (view full) --- 43# 44# Initial interface configuration. 45# N.B. /usr is not mounted. 46# 47atm_start() 48{ 49 if [ -n "${natm_interfaces}" ] ; then 50 # Load the HARP pseudo interface |
51 kldstat -v | grep -q if_harp || kldload if_harp | 51 load_kld if_harp || return 1 |
52 53 # Load all the NATM drivers that we need 54 for natm in ${natm_interfaces} ; do 55 ifconfig ${natm} up 56 done 57 fi 58 59 # Load loadable HARP drivers 60 for dev in ${atm_load} ; do | 52 53 # Load all the NATM drivers that we need 54 for natm in ${natm_interfaces} ; do 55 ifconfig ${natm} up 56 done 57 fi 58 59 # Load loadable HARP drivers 60 for dev in ${atm_load} ; do |
61 kldstat -v | grep -q ${dev} || kldload ${dev} | 61 load_kld ${dev} || return 1 |
62 done 63 64 # Locate all probed ATM adapters 65 atmdev=`atm sh stat int | while read dev junk; do 66 case ${dev} in 67 hea[0-9] | hea[0-9][0-9]) 68 echo "${dev} " 69 ;; --- 107 unchanged lines hidden --- | 62 done 63 64 # Locate all probed ATM adapters 65 atmdev=`atm sh stat int | while read dev junk; do 66 case ${dev} in 67 hea[0-9] | hea[0-9][0-9]) 68 echo "${dev} " 69 ;; --- 107 unchanged lines hidden --- |