Contents of /alx-src/trunk/kernel26-alx/linux/Documentation/aoe/mkdevs.sh
Parent Directory | Revision Log
Revision 628 -
(show annotations)
(download)
(as text)
Wed Mar 4 10:48:58 2009 UTC (15 years, 1 month ago) by niro
File MIME type: application/x-sh
File size: 725 byte(s)
Wed Mar 4 10:48:58 2009 UTC (15 years, 1 month ago) by niro
File MIME type: application/x-sh
File size: 725 byte(s)
import linux sources based on 2.6.12-alx-r9: -using linux-2.6.12.6 -using 2.6.12-ck6 patch set -using fbsplash-0.9.2-r3 -using vesafb-tng-0.9-rc7 -using squashfs-2.2 -added cddvd-cmdfilter-drop.patch as ck dropped it -added via-epia-dri (cle266) patch -added zd1211-svn-32 wlan driver (http://zd1211.ath.cx/download/) -added debian patches to zd1211 for wep256 etc
1 | #!/bin/sh |
2 | |
3 | n_shelves=${n_shelves:-10} |
4 | n_partitions=${n_partitions:-16} |
5 | |
6 | if test "$#" != "1"; then |
7 | echo "Usage: sh `basename $0` {dir}" 1>&2 |
8 | echo " n_partitions=16 sh `basename $0` {dir}" 1>&2 |
9 | exit 1 |
10 | fi |
11 | dir=$1 |
12 | |
13 | MAJOR=152 |
14 | |
15 | echo "Creating AoE devnode files in $dir ..." |
16 | |
17 | set -e |
18 | |
19 | mkdir -p $dir |
20 | |
21 | # (Status info is in sysfs. See status.sh.) |
22 | # rm -f $dir/stat |
23 | # mknod -m 0400 $dir/stat c $MAJOR 1 |
24 | rm -f $dir/err |
25 | mknod -m 0400 $dir/err c $MAJOR 2 |
26 | rm -f $dir/discover |
27 | mknod -m 0200 $dir/discover c $MAJOR 3 |
28 | rm -f $dir/interfaces |
29 | mknod -m 0200 $dir/interfaces c $MAJOR 4 |
30 | |
31 | export n_partitions |
32 | mkshelf=`echo $0 | sed 's!mkdevs!mkshelf!'` |
33 | i=0 |
34 | while test $i -lt $n_shelves; do |
35 | sh -xc "sh $mkshelf $dir $i" |
36 | i=`expr $i + 1` |
37 | done |
Properties
Name | Value |
---|---|
svn:keywords | Id |