source: udev/load_floppy_module.sh@ 5bb1fd1

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 5bb1fd1 was 7e161ea, checked in by Jim Gifford <clfs@…>, 19 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
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
18PROC=/proc/driver/nvram
19
20if [ ! -r /proc/driver/nvram ]; then
21 exit 0;
22fi
23
24floppy_devices=$(cat $PROC | sed -n '/Floppy.*\..*/p')
25
26if [ -n "$floppy_devices" ]; then
27 /sbin/modprobe block-major-2
28else
29 /bin/true
30fi
31
32exit $?
Note: See TracBrowser for help on using the repository browser.