summaryrefslogtreecommitdiffstats
path: root/etc/MAKEDEV
diff options
context:
space:
mode:
authordanny <danny@FreeBSD.org>1997-03-10 02:10:58 +0000
committerdanny <danny@FreeBSD.org>1997-03-10 02:10:58 +0000
commit98fd8974f6008e3628cbbe2af2e826b70b3be93a (patch)
treedffd8dcfe173e1ac17177e604df3cfe175665831 /etc/MAKEDEV
parent477ae9e7a3cbfd4df99f1f947dce883d7872ba2f (diff)
downloadFreeBSD-src-98fd8974f6008e3628cbbe2af2e826b70b3be93a.zip
FreeBSD-src-98fd8974f6008e3628cbbe2af2e826b70b3be93a.tar.gz
Update MAKEDEV to handle lots of tun devices, consistent with the tun device
selection code in usr.sbin/ppp/os.c (tun0-tun127, rather than tuna and tunb). Also, make it make all devices up to and including the requested one.
Diffstat (limited to 'etc/MAKEDEV')
-rw-r--r--etc/MAKEDEV16
1 files changed, 10 insertions, 6 deletions
diff --git a/etc/MAKEDEV b/etc/MAKEDEV
index 2f5f210..04ab888 100644
--- a/etc/MAKEDEV
+++ b/etc/MAKEDEV
@@ -103,7 +103,7 @@
# perfmon CPU performance-monitoring counters
# pci PCI configuration-space access from user mode
#
-# $Id: MAKEDEV,v 1.137 1997/03/03 16:13:35 bde Exp $
+# $Id: MAKEDEV,v 1.138 1997/03/05 14:04:00 joerg Exp $
#
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:$PATH
@@ -1095,11 +1095,15 @@ meteor?)
chmod 444 meteor$unit
;;
-tun?)
- unit=`expr $i : 'tun\(.*\)'`
- rm -f tun$unit
- mknod tun$unit c 52 $unit
- chown uucp.dialer tun$unit
+tun*)
+ ntun=`expr $i : 'tun\(.*\)$'`
+ unit=0
+ while [ $unit -le $ntun ]; do
+ rm -f tun$unit
+ mknod tun$unit c 52 $unit
+ chown uucp.dialer tun$unit
+ unit=`expr $unit + 1`
+ done
;;
sysmouse)
OpenPOWER on IntegriCloud