diff --git a/etc/MAKEDEV b/etc/MAKEDEV index 2f5f210f17c6..04ab88895dc6 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) diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV index 2f5f210f17c6..04ab88895dc6 100644 --- a/etc/etc.i386/MAKEDEV +++ b/etc/etc.i386/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)