diff options
author | yar <yar@FreeBSD.org> | 2006-12-31 10:37:18 +0000 |
---|---|---|
committer | yar <yar@FreeBSD.org> | 2006-12-31 10:37:18 +0000 |
commit | dc9f8423c3772111565181a8568c60c4da0a1689 (patch) | |
tree | 7ed36d4fe8965c59b37bcccfa387cf77469cbeef /etc/rc.d/atm1 | |
parent | 58a4c67f05bc56e76c61ca19ed42f2e412cfd55f (diff) | |
download | FreeBSD-src-dc9f8423c3772111565181a8568c60c4da0a1689.zip FreeBSD-src-dc9f8423c3772111565181a8568c60c4da0a1689.tar.gz |
Use $required_modules wherever suitable. Use load_kld() in special
cases. So we get rid of quite a few lines of duplicated code.
Diffstat (limited to 'etc/rc.d/atm1')
-rw-r--r-- | etc/rc.d/atm1 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.d/atm1 b/etc/rc.d/atm1 index dc91700..da50df0 100644 --- a/etc/rc.d/atm1 +++ b/etc/rc.d/atm1 @@ -48,7 +48,7 @@ atm_start() { if [ -n "${natm_interfaces}" ] ; then # Load the HARP pseudo interface - kldstat -v | grep -q if_harp || kldload if_harp + load_kld if_harp || return 1 # Load all the NATM drivers that we need for natm in ${natm_interfaces} ; do @@ -58,7 +58,7 @@ atm_start() # Load loadable HARP drivers for dev in ${atm_load} ; do - kldstat -v | grep -q ${dev} || kldload ${dev} + load_kld ${dev} || return 1 done # Locate all probed ATM adapters |