clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since ecd487bd was a6cd72e, checked in by Jim Gifford <clfs@…>, 19 years ago |
r861@server (orig r859): jim | 2005-12-06 22:41:11 -0800
r994@server: jim | 2005-12-06 22:39:42 -0800
Updates from 077 OpenSuse Package
|
-
Property mode
set to
100755
|
File size:
791 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | ########################################################################
|
---|
3 | #
|
---|
4 | # Description : load_floppy_module
|
---|
5 | #
|
---|
6 | # Authors : Based on Open Suse Udev Rules
|
---|
7 | # kay.sievers@suse.de
|
---|
8 | #
|
---|
9 | # Adapted to : Jim Gifford
|
---|
10 | # LFS
|
---|
11 | #
|
---|
12 | # Version : 00.00
|
---|
13 | #
|
---|
14 | # Notes : Loads the floppy module based upon contents of the NVRAM
|
---|
15 | #
|
---|
16 | ########################################################################
|
---|
17 |
|
---|
18 | PROC=/proc/driver/nvram
|
---|
19 |
|
---|
20 | # wait for /proc file to appear
|
---|
21 | loop=10
|
---|
22 | while ! test -e $PROC; do
|
---|
23 | sleep 0.1;
|
---|
24 | test "$loop" -gt 0 || break
|
---|
25 | loop=$(($loop - 1))
|
---|
26 | done
|
---|
27 |
|
---|
28 | if [ ! -r /proc/driver/nvram ]; then
|
---|
29 | exit 0;
|
---|
30 | fi
|
---|
31 |
|
---|
32 | floppy_devices=$(cat $PROC | sed -n '/Floppy.*\..*/p')
|
---|
33 |
|
---|
34 | if [ -n "$floppy_devices" ]; then
|
---|
35 | /sbin/modprobe block-major-2
|
---|
36 | else
|
---|
37 | /bin/true
|
---|
38 | fi
|
---|
39 |
|
---|
40 | exit $?
|
---|
Note:
See
TracBrowser
for help on using the repository browser.