Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc - replace 'sh -$- $0' with 'makedev' (missed this a whi...



details:   https://anonhg.NetBSD.org/src/rev/8ebd9b35cebc
branches:  trunk
changeset: 538456:8ebd9b35cebc
user:      lukem <lukem%NetBSD.org@localhost>
date:      Mon Oct 21 03:26:39 2002 +0000

description:
- replace 'sh -$- $0' with 'makedev'  (missed this a while ago)
- TABify

diffstat:

 etc/etc.sparc/MAKEDEV   |  69 ++++++++++++++++++++++++------------------------
 etc/etc.sparc64/MAKEDEV |  69 ++++++++++++++++++++++++------------------------
 2 files changed, 68 insertions(+), 70 deletions(-)

diffs (213 lines):

diff -r 92861ae26091 -r 8ebd9b35cebc etc/etc.sparc/MAKEDEV
--- a/etc/etc.sparc/MAKEDEV     Mon Oct 21 03:20:25 2002 +0000
+++ b/etc/etc.sparc/MAKEDEV     Mon Oct 21 03:26:39 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.79 2002/10/04 18:53:46 elric Exp $
+#      $NetBSD: MAKEDEV,v 1.80 2002/10/21 03:26:39 lukem Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -118,31 +118,31 @@
 case $i in
 
 all)
-       sh -$- $0 std ttya ttyb ttyc ttyd
-       sh -$- $0 fd sd0 sd1 sd2 sd3 sd4 xd0 xd1 xd2 xd3 xy0 xy1 xy2 xy3
-       sh -$- $0 cd0 st0 st1 fd0 md0 md1
-       sh -$- $0 audio0 audio1 audio2 audio3
-       sh -$- $0 pty0 vnd0 vnd1 vnd2 vnd3 audio
-       sh -$- $0 tun0 tun1 tun2 tun3
-       sh -$- $0 ccd0 ccd1 ccd2 ccd3
-       sh -$- $0 cgd0 cgd1 cgd2 cgd3
-       sh -$- $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
-       sh -$- $0 bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
-       sh -$- $0 bwtwo0 cgthree0 cgsix0 tcx0
-       sh -$- $0 bwtwo1 cgthree1 cgsix1 tcx1
-       sh -$- $0 cgtwo0 cgfour0 cgeight0
-       sh -$- $0 scsibus0 scsibus1 scsibus2 scsibus3
-       sh -$- $0 lkm random local ipl cfs0 apm apmctl tctrl0
-       sh -$- $0 isdns
-       sh -$- $0 pci0
-       sh -$- $0 clockctl
-       sh -$- $0 systrace
+       makedev std ttya ttyb ttyc ttyd
+       makedev fd sd0 sd1 sd2 sd3 sd4 xd0 xd1 xd2 xd3 xy0 xy1 xy2 xy3
+       makedev cd0 st0 st1 fd0 md0 md1
+       makedev audio0 audio1 audio2 audio3
+       makedev pty0 vnd0 vnd1 vnd2 vnd3 audio
+       makedev tun0 tun1 tun2 tun3
+       makedev ccd0 ccd1 ccd2 ccd3
+       makedev cgd0 cgd1 cgd2 cgd3
+       makedev raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
+       makedev bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
+       makedev bwtwo0 cgthree0 cgsix0 tcx0
+       makedev bwtwo1 cgthree1 cgsix1 tcx1
+       makedev cgtwo0 cgfour0 cgeight0
+       makedev scsibus0 scsibus1 scsibus2 scsibus3
+       makedev lkm random local ipl cfs0 apm apmctl tctrl0
+       makedev isdns
+       makedev pci0
+       makedev clockctl
+       makedev systrace
        ;;
 
 floppy|ramdisk)
-       sh -$- $0 std ttya ttyb ttyc ttyd opty
-       sh -$- $0 sd0 sd1 sd2 sd3 sd4 sd5 md0
-       sh -$- $0 cd0 cd1 st0 st1 fd0
+       makedev std ttya ttyb ttyc ttyd opty
+       makedev sd0 sd1 sd2 sd3 sd4 sd5 md0
+       makedev cd0 cd1 st0 st1 fd0
        ;;
 
 isdns)
@@ -423,16 +423,15 @@
        chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
        ;;
 
-               
 pty*)
        class=${i#pty}
        name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
        case $name in
        v)      echo "$0: $i: pty unit conflicts with console ttyv0 device."
-               continue;;
-       ?)      ;;
-       *)      echo "$0: $i: pty unit must be between 0 and 15"
-               continue ;;
+               continue ;;
+       ?)      ;;
+       *)      echo "$0: $i: pty unit must be between 0 and 15"
+               continue ;;
        esac
        rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
        jn=0
@@ -471,13 +470,13 @@
        for j in 0 1 2 3 4 5 6 7 8 9 a b c d e f
        do
                case $j in
-               [0-9])  jn=$j ;;
-               a)      jn=10 ;;
-               b)      jn=11 ;;
-               c)      jn=12 ;;
-               d)      jn=13 ;;
-               e)      jn=14 ;;
-               f)      jn=15 ;;
+               [0-9])  jn=$j ;;
+               a)      jn=10 ;;
+               b)      jn=11 ;;
+               c)      jn=12 ;;
+               d)      jn=13 ;;
+               e)      jn=14 ;;
+               f)      jn=15 ;;
                esac
                mknod tty$unit$j c 100 $(($unit * 64 + $jn))
        done
diff -r 92861ae26091 -r 8ebd9b35cebc etc/etc.sparc64/MAKEDEV
--- a/etc/etc.sparc64/MAKEDEV   Mon Oct 21 03:20:25 2002 +0000
+++ b/etc/etc.sparc64/MAKEDEV   Mon Oct 21 03:26:39 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh -
 #
-#      $NetBSD: MAKEDEV,v 1.41 2002/10/04 18:53:47 elric Exp $
+#      $NetBSD: MAKEDEV,v 1.42 2002/10/21 03:26:40 lukem Exp $
 #
 # Copyright (c) 1990 The Regents of the University of California.
 # All rights reserved.
@@ -131,31 +131,31 @@
 case $i in
 
 all)
-       sh -$- $0 std ttya ttyb ttyc ttyd ttyC00 ttyC01 ttyh0 ttyh1
-       sh -$- $0 fd sd0 sd1 sd2 sd3 sd4 ss0 ch0 uk0 uk1
-       sh -$- $0 wd0 wd1 wd2 wd3 cd0 st0 st1 fd0 md0 md1
-       sh -$- $0 audio0 audio1 audio2 audio3
-       sh -$- $0 pty0 vnd0 vnd1 vnd2 vnd3 audio
-       sh -$- $0 tun0 tun1 tun2 tun3
-       sh -$- $0 ccd0 ccd1 ccd2 ccd3
-       sh -$- $0 cgd0 cgd1 cgd2 cgd3
-       sh -$- $0 raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
-       sh -$- $0 bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
-       sh -$- $0 bwtwo0 cgtwo0 cgthree0 cgfour0 cgsix0
-       sh -$- $0 cgeight0 tcx0
-       sh -$- $0 scsibus0 scsibus1 scsibus2 scsibus3
-       sh -$- $0 ipl lkm random local
-       sh -$- $0 usbs
-       sh -$- $0 isdns
-       sh -$- $0 pci0 pci1 pci2 pci3 pci4 pci5 pci6 pci7
-       sh -$- $0 clockctl
-       sh -$- $0 systrace
+       makedev std ttya ttyb ttyc ttyd ttyC00 ttyC01 ttyh0 ttyh1
+       makedev fd sd0 sd1 sd2 sd3 sd4 ss0 ch0 uk0 uk1
+       makedev wd0 wd1 wd2 wd3 cd0 st0 st1 fd0 md0 md1
+       makedev audio0 audio1 audio2 audio3
+       makedev pty0 vnd0 vnd1 vnd2 vnd3 audio
+       makedev tun0 tun1 tun2 tun3
+       makedev ccd0 ccd1 ccd2 ccd3
+       makedev cgd0 cgd1 cgd2 cgd3
+       makedev raid0 raid1 raid2 raid3 raid4 raid5 raid6 raid7
+       makedev bpf0 bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7
+       makedev bwtwo0 cgtwo0 cgthree0 cgfour0 cgsix0
+       makedev cgeight0 tcx0
+       makedev scsibus0 scsibus1 scsibus2 scsibus3
+       makedev ipl lkm random local
+       makedev usbs
+       makedev isdns
+       makedev pci0 pci1 pci2 pci3 pci4 pci5 pci6 pci7
+       makedev clockctl
+       makedev systrace
        ;;
 floppy|ramdisk)
-       sh -$- $0 std ttya ttyb ttyc ttyd opty
-       sh -$- $0 sd0 sd1 sd2 sd3 sd4 sd5 md0
-       sh -$- $0 wd0 wd1 cd0 cd1 st0 st1 fd0
-       sh -$- $0 random
+       makedev std ttya ttyb ttyc ttyd opty
+       makedev sd0 sd1 sd2 sd3 sd4 sd5 md0
+       makedev wd0 wd1 cd0 cd1 st0 st1 fd0
+       makedev random
        ;;
 isdns)
        makedev isdn isdnctl isdnbchan0 isdnbchan1 isdntel0 isdntel1 isdntrc0 isdntrc1
@@ -435,16 +435,15 @@
        chmod 666 ttyp[0-9a-f] ptyp[0-9a-f]
        ;;
 
-               
 pty*)
        class=${i#pty}
        name=`echo pqrstuvwxyzPQRST | dd bs=1 count=1 skip=$class 2>/dev/null`
        case $name in
        v)      echo "$0: $i: pty unit conflicts with console ttyv0 device."
-               continue;;
-       ?)      ;;
-       *)      echo "$0: $i: pty unit must be between 0 and 15"
-               continue ;;
+               continue ;;
+       ?)      ;;
+       *)      echo "$0: $i: pty unit must be between 0 and 15"
+               continue ;;
        esac
        rm -f tty$name[0-9a-zA-Z] pty$name[0-9a-zA-Z]
        jn=0
@@ -484,12 +483,12 @@
        do
                case $j in
                [0-9])  jn=$j ;;
-               a)      jn=10 ;;
-               b)      jn=11 ;;
-               c)      jn=12 ;;
-               d)      jn=13 ;;
-               e)      jn=14 ;;
-               f)      jn=15 ;;
+               a)      jn=10 ;;
+               b)      jn=11 ;;
+               c)      jn=12 ;;
+               d)      jn=13 ;;
+               e)      jn=14 ;;
+               f)      jn=15 ;;
                esac
                mknod tty$unit$j c 100 $(($unit * 64 + $jn))
        done



Home | Main Index | Thread Index | Old Index