summaryrefslogtreecommitdiffstats
path: root/etc/rc.atm
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1998-10-08 08:56:01 +0000
committerphk <phk@FreeBSD.org>1998-10-08 08:56:01 +0000
commitf4a8651b6ad6103d2894cec8e43d29a9bc00aa88 (patch)
treece28e1481bf2c3ef78c05a196346042941268d2e /etc/rc.atm
parent0b05f0265c3485baa313b46da9c1f1b8fce69618 (diff)
downloadFreeBSD-src-f4a8651b6ad6103d2894cec8e43d29a9bc00aa88.zip
FreeBSD-src-f4a8651b6ad6103d2894cec8e43d29a9bc00aa88.tar.gz
Avoid using dmesg to find devices, the buffer may not be big enough.
Reviewed by: phk Submitted by: Mike Spengler <mks@networkcs.com>
Diffstat (limited to 'etc/rc.atm')
-rw-r--r--etc/rc.atm7
1 files changed, 2 insertions, 5 deletions
diff --git a/etc/rc.atm b/etc/rc.atm
index 42854c0..2f807eb 100644
--- a/etc/rc.atm
+++ b/etc/rc.atm
@@ -10,10 +10,8 @@
# N.B. /usr is not mounted.
#
atm_pass1() {
- # Locate all probed ATM adapters by scanning dmesg output
- saveifs="${IFS}"
- IFS=$IFS:
- atmdev=`dmesg | while read dev junk; do
+ # Locate all probed ATM adapters
+ atmdev=`atm sh stat int | while read dev junk; do
case ${dev} in
hea[0-9]|hea[0-9][0-9])
echo "${dev} "
@@ -26,7 +24,6 @@ atm_pass1() {
;;
esac
done`
- IFS="${saveifs}"
if [ -z "${atmdev}" ]; then
echo "No ATM adapters found."
OpenPOWER on IntegriCloud