Magellan Linux

Contents of /alx-src/trunk/kernel26-alx/linux/Documentation/aoe/mkshelf.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 628 - (show annotations) (download) (as text)
Wed Mar 4 10:48:58 2009 UTC (15 years, 2 months ago) by niro
File MIME type: application/x-sh
File size: 554 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 if test "$#" != "2"; then
4 echo "Usage: sh `basename $0` {dir} {shelfaddress}" 1>&2
5 echo " n_partitions=16 sh `basename $0` {dir} {shelfaddress}" 1>&2
6 exit 1
7 fi
8 n_partitions=${n_partitions:-16}
9 dir=$1
10 shelf=$2
11 MAJOR=152
12
13 set -e
14
15 minor=`echo 10 \* $shelf \* $n_partitions | bc`
16 endp=`echo $n_partitions - 1 | bc`
17 for slot in `seq 0 9`; do
18 for part in `seq 0 $endp`; do
19 name=e$shelf.$slot
20 test "$part" != "0" && name=${name}p$part
21 rm -f $dir/$name
22 mknod -m 0660 $dir/$name b $MAJOR $minor
23
24 minor=`expr $minor + 1`
25 done
26 done

Properties

Name Value
svn:keywords Id