ia64/xen-unstable

view tools/misc/xen-mkdevnodes @ 1372:5a6113c65ead

bitkeeper revision 1.891.1.12 (40a248b0WTGoOa9206iWkyGN0mTPNw)

Allow forcing of IRQ trigger-type to edge or level
(NB. DANGEROUS!).
author kaf24@scramble.cl.cam.ac.uk
date Wed May 12 15:54:24 2004 +0000 (2004-05-12)
parents f8c20f68e4d5
children
line source
1 #! /bin/bash
3 BASE=${1:?"base directory missing (eg. /dev)"}
5 rm -f ${BASE}/xvd[abcdefghijklmnop]*
7 # XLVIRT is 16 devices of 15 partitions
9 LETTERS="a b c d e f g h i j k l m n o p"
10 PARTITIONS="1 2 3 4 5 6 7 8 9 10 11 12 13 14 15"
12 j=0
13 for l in ${LETTERS}; do
14 mknod ${BASE}/xvd${l} b 125 ${j}
15 chmod 600 ${BASE}/xvd${l}
16 for i in ${PARTITIONS}; do
17 mknod ${BASE}/xvd${l}${i} b 125 $(($i+$j))
18 chmod 600 ${BASE}/xvd${l}${i}
19 done
20 j=$(($j+16))
21 done