summaryrefslogtreecommitdiff
path: root/rc/bin/addaoe
diff options
context:
space:
mode:
authorTaru Karttunen <taruti@taruti.net>2011-03-30 17:14:36 +0300
committerTaru Karttunen <taruti@taruti.net>2011-03-30 17:14:36 +0300
commit2959e1ede0ebc6fdffd7b8660f43c2ce14c9696f (patch)
treef6343b1ce11a8c87251dd27cf3d3e26b50693fa7 /rc/bin/addaoe
parente463eb40363ff4c68b1d903f4e0cdd0ac1c5977f (diff)
downloadplan9front-2959e1ede0ebc6fdffd7b8660f43c2ce14c9696f.tar.xz
Import sources from 2011-03-30 iso image - rc
Diffstat (limited to 'rc/bin/addaoe')
-rwxr-xr-xrc/bin/addaoe8
1 files changed, 8 insertions, 0 deletions
diff --git a/rc/bin/addaoe b/rc/bin/addaoe
new file mode 100755
index 000000000..d549ffa1f
--- /dev/null
+++ b/rc/bin/addaoe
@@ -0,0 +1,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