MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /lib/udev/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/udev/load_floppy_module.sh
#!/bin/sh
########################################################################
#
# Description : load_floppy_module
#
# Authors     : Based on Open Suse Udev Rules
#               kay.sievers at suse.de
#
# Notes       : Loads the floppy module based upon contents of the NVRAM
# 
########################################################################

PROC=/proc/driver/nvram

# wait for /proc file to appear
loop=10
while ! test -e $PROC; do
    sleep 0.1;
    test "$loop" -gt 0 || break
    loop=$(($loop - 1))
done

if [ ! -r /proc/driver/nvram ]; then
    exit 0;
fi

floppy_devices=$(cat $PROC | sed -n '/Floppy.*\..*/p')

if [ -n "$floppy_devices" ]; then
    /sbin/modprobe block-major-2-
else
    /bin/true
fi

exit $?

Anon7 - 2021