summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorrbalocca <rbalocca@vyatta.com>2008-09-26 16:46:05 -0700
committerrbalocca <rbalocca@vyatta.com>2008-09-26 16:46:05 -0700
commit01491ebb315529124dea2d29f4b72507aa48f9ad (patch)
tree0f44c865f5e8540f6b709b65ade63b36411faac1 /etc
parent737562c6ab9d800f880f0e7a9be43ac9508e1af8 (diff)
downloadvyatta-cfg-01491ebb315529124dea2d29f4b72507aa48f9ad.tar.gz
vyatta-cfg-01491ebb315529124dea2d29f4b72507aa48f9ad.zip
Simplify the code
Diffstat (limited to 'etc')
-rwxr-xr-xetc/init.d/vyatta-ofr10
1 files changed, 5 insertions, 5 deletions
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