1
0

addaoe 274 B

12345678
  1. #!/bin/rc
  2. # addaoe let unit - add an AoE logical unit as sd$let
  3. if (! ~ $#* 2 || ! ~ $1 ? || ! ~ $2 *.*) {
  4. echo usage: $0 letter aoe-lun >[1=2]
  5. exit usage
  6. }
  7. if (test -e /dev/aoe/$2 && ! test -e /dev/sd^$1^0)
  8. echo config switch on spec $1 type aoe//dev/aoe/$2 >/dev/sdctl