]> git.lizzy.rs Git - plan9front.git/blob - rc/bin/addaoe
use /n/other for tmp storage
[plan9front.git] / rc / bin / addaoe
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