Subject: Re: MAKEDEV prob
To: Lennart Augustsson <lennart@augustsson.net>
From: Andrew Brown <atatat@atatdot.net>
List: current-users
Date: 05/07/2003 09:23:25
>>ugen*)  
>>        unit=${i#ugen}
>>        ugen=ugen$unit
>>        major=64
>>        for j in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15
>>        do
>>                ugenj=$ugen.$j  
>>                rm -f $ugenj
>>                mknod $ugenj c $major $(($unit * 16 + $j))
>>                chmod 600 $ugenj
>>        done
>>        ;;
>>...
>>So, that (s/ 0/ /) needs changing in nearly every ports' MAKEDEV (!)
>...
>But then the device nodes will no longer be named as before.
>Is there any way to force it to decimal?

who cares?  just remove all the leading zeroes, and add this:

	j=$(echo 0$j | sed 's/.\(..\)/\1/')

above the line that says:

	ugenj=$ugen.$j  

and the problem goes away.  :)

-- 
|-----< "CODE WARRIOR" >-----|
codewarrior@daemon.org             * "ah!  i see you have the internet
twofsonet@graffiti.com (Andrew Brown)                that goes *ping*!"
werdna@squooshy.com       * "information is power -- share the wealth."