summaryrefslogtreecommitdiff
path: root/etc/init.d
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-11-07 08:33:18 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-11-07 10:01:57 -0800
commit47fd5a2c81f02c018669045b5f7faad0a3bfd571 (patch)
tree46b2a8b61103fdf1ae4f99b23bdf9eeb646c582e /etc/init.d
parent013a9f70c38310a486b080b870a1173057ead6f6 (diff)
downloadvyatta-cfg-47fd5a2c81f02c018669045b5f7faad0a3bfd571.tar.gz
vyatta-cfg-47fd5a2c81f02c018669045b5f7faad0a3bfd571.zip
Avoid overhead of modprobe
Floppy device driver is now builtin the kernel. Mount will load necessary filesystems
Diffstat (limited to 'etc/init.d')
-rwxr-xr-xetc/init.d/vyatta-ofr7
1 files changed, 1 insertions, 6 deletions
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