Hi,

Hope this script helps you:

Here's a small script that creates devices nodes up to dasdbl3:

#! /usr/bin/perl

my $maj=94;

for (my $min=104; $min < 256; $min++) {
        $b=$min/4;
        if ($b >= 26) {
                $a = $b / 26;
                $b = $b % 26;
        }

        my $p = chr($min % 4 + 48) if ($min % 4);
        system("mknod /dev/dasd".chr($a+96).chr($b+97).$p." b $maj $min");
}


Aris.
  .....................................................

..:                                                   :
: : Aristarc Diez           : [EMAIL PROTECTED]      :
: : Tecnico de Sistemas     : Tel.: +34.93.2536100    :
: : COSTAISA S.A.           : Ext.: 209               :
: : Barcelona               : FAX : +34.93.2057917    :
: :...................................................:
:.................................................:
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390

Reply via email to