ref: 0e96985e12d03ea0dcc9a82a5e4f307b80aca93d
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'