mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 17:32:43 +00:00
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.
This commit is contained in:
parent
66c2b11f00
commit
8a96b3a58d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23596
16
etc/MAKEDEV
16
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)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user