Contents of /trunk/udev/config-udev-046/floppy-extra-devs.sh
Parent Directory | Revision Log
Revision 3 -
(show annotations)
(download)
(as text)
Fri Dec 10 12:17:31 2004 UTC (19 years, 4 months ago) by niro
File MIME type: application/x-sh
File size: 747 byte(s)
Fri Dec 10 12:17:31 2004 UTC (19 years, 4 months ago) by niro
File MIME type: application/x-sh
File size: 747 byte(s)
This commit was generated by cvs2svn to compensate for changes in r2, which included commits to RCS files with non-trunk default branches.
1 | #!/bin/sh |
2 | # floppy-extra-devs.sh |
3 | # by volkerdi at slackware dot com |
4 | |
5 | # This is a handy pseudo-expr picked up from the MAKEDEV script: |
6 | math() { |
7 | eval echo "\$(($*))" |
8 | } |
9 | |
10 | # Add extra floppy devices (used only by fdformat, I think) |
11 | FLOPNUM=`echo $1 | cut -b 3` |
12 | for devpair in \ |
13 | d360:4 \ |
14 | h360:20 h720:24 h880:80 h1200:8 h1440:40 h1476:56 h1494:72 h1600:92 \ |
15 | u1440:28 u1600:124 u1680:44 u1722:60 u1743:76 u1760:96 u1840:116 u1920:100 \ |
16 | u2880:32 u3200:104 u3520:108 u3840:112 ; do |
17 | FLOPDEV=`echo $devpair | cut -f 1 -d :` |
18 | FLOPNOD=`echo $devpair | cut -f 2 -d :` |
19 | mknod /dev/${1}${FLOPDEV} b 2 `math $FLOPNOD + $FLOPNUM` |
20 | chown root:floppy /dev/${1}${FLOPDEV} |
21 | chmod 660 /dev/${1}${FLOPDEV} |
22 | done |
23 | unset FLOPNUM FLOPDEV FLOPNOD devpair math |
Properties
Name | Value |
---|---|
svn:executable | * |