Oops, I meant unit2minor for ugen & urio :-/

> Hi
> 
> It looks like a function got left out of MAKEDEV.
> 
> This seems to fix it:
> 
> Index: /usr/src/etc/MAKEDEV
> ===================================================================
> RCS file: /home/ncvs/src/etc/MAKEDEV,v
> retrieving revision 1.268
> diff -u -d -r1.268 MAKEDEV
> --- /usr/src/etc/MAKEDEV      2000/08/16 16:42:50     1.268
> +++ /usr/src/etc/MAKEDEV      2000/08/18 06:01:10
> @@ -221,6 +221,12 @@
>    echo $(((($1 >> 8) << 16) | ($1 % 256)))
>  }
>  
> +# Convert a minor number to a unit number.
> +minor2unit()
> +{
> +  echo $(((($1 >> 16) << 8) | ($1 % 256)))
> +}
> +
>  # Raw partition for disks
>  dkrawpart=2
> 
> M 
> 

-- 
Brian <[EMAIL PROTECTED]>                        <brian@[uk.]FreeBSD.org>
      <http://www.Awfulhak.org>                   <brian@[uk.]OpenBSD.org>
Don't _EVER_ lose your sense of humour !




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to