shithub: riscv

ref: 970d3b7eb7dc56aa84924dd68c4c39fd1df5d1f5
dir: /rc/bin/addaoe/

View raw version
#!/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