From 47fd5a2c81f02c018669045b5f7faad0a3bfd571 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Fri, 7 Nov 2008 08:33:18 -0800 Subject: Avoid overhead of modprobe Floppy device driver is now builtin the kernel. Mount will load necessary filesystems --- etc/init.d/vyatta-ofr | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'etc/init.d') diff --git a/etc/init.d/vyatta-ofr b/etc/init.d/vyatta-ofr index 75a03b4..4fb4c1e 100755 --- a/etc/init.d/vyatta-ofr +++ b/etc/init.d/vyatta-ofr @@ -66,15 +66,10 @@ have_rl_system () { # if necessary, provide initial config init_bootfile () { - # try floppy - # if we do not discover an fd device, try loading the floppy module - grep -q fd /proc/devices || modprobe -q floppy 2>/dev/null - grep -q ext2 /proc/filesystems || modprobe -q ext2 2>/dev/null - grep -q vfat /proc/filesystems || modprobe -q vfat 2>/dev/null if [ ! -d /media/floppy/config ] && grep -q fd /proc/devices then mkdir -p /media/floppy - mount /dev/fd0 /media/floppy -o sync || + mount /dev/fd0 /media/floppy -o sync || mount -t ext2 /dev/fd0 /media/floppy -o sync || mount -t vfat /dev/fd0 /media/floppy fi 2>/dev/null -- cgit v1.2.3