From 01491ebb315529124dea2d29f4b72507aa48f9ad Mon Sep 17 00:00:00 2001 From: rbalocca Date: Fri, 26 Sep 2008 16:46:05 -0700 Subject: Simplify the code --- etc/init.d/vyatta-ofr | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'etc') diff --git a/etc/init.d/vyatta-ofr b/etc/init.d/vyatta-ofr index 87e961f..200ab0b 100755 --- a/etc/init.d/vyatta-ofr +++ b/etc/init.d/vyatta-ofr @@ -73,11 +73,11 @@ init_bootfile () { 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 2>/dev/null - mount /dev/fd0 /media/floppy -o sync 2>/dev/null || - mount -t ext2 /dev/fd0 /media/floppy -o sync 2>/dev/null || - mount -t vfat /dev/fd0 /media/floppy 2>/dev/null - fi + mkdir -p /media/floppy + 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 [ -d /media/floppy/config ] && mount -o bind /media/floppy/config /opt/vyatta/etc/config -- cgit v1.2.3