changelog shortlog tags branches changeset files revisions annotate raw help

Mercurial > hg > plan9front / rc/bin/addaoe

changeset 7243: 34f64dcbbc25
parent: efddda59690a
author: cinap_lenrek@felloff.net
date: Fri, 17 May 2019 18:14:10 +0200
permissions: -rwxr-xr-x
description: 7l: don't hardcode 4k pagesize, use INITRND
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