ref: 1fe150f1ed46a8c1a65187b3088274e067493639
dir: /rc/bin/chdev/
#!/bin/rc rfork e fn usage { echo 'usage:' $0 '[ -nr ] devmask' >[1=2] exit usage } op='&' while(~ $1 -*){ switch($1){ case -n; op='~' case -r; op='&~' case *; usage } shift } echo chdev $op $1 >> '#c/drivers'