clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
|
Last change
on this file since 351f3e1f was 7e161ea, checked in by Jim Gifford <clfs@…>, 20 years ago |
r833@server (orig r831): jim | 2005-12-05 10:42:24 -0800
Added: udev package for Cross-LFS. Work in Progress
|
-
Property mode
set to
100755
|
|
File size:
648 bytes
|
| Rev | Line | |
|---|
| [7e161ea] | 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 | if [ ! -r /proc/driver/nvram ]; then
|
|---|
| 21 | exit 0;
|
|---|
| 22 | fi
|
|---|
| 23 |
|
|---|
| 24 | floppy_devices=$(cat $PROC | sed -n '/Floppy.*\..*/p')
|
|---|
| 25 |
|
|---|
| 26 | if [ -n "$floppy_devices" ]; then
|
|---|
| 27 | /sbin/modprobe block-major-2
|
|---|
| 28 | else
|
|---|
| 29 | /bin/true
|
|---|
| 30 | fi
|
|---|
| 31 |
|
|---|
| 32 | exit $?
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.