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