diff options
author | rbalocca <rbalocca@vyatta.com> | 2008-09-26 16:46:05 -0700 |
---|---|---|
committer | rbalocca <rbalocca@vyatta.com> | 2008-09-26 16:46:05 -0700 |
commit | 01491ebb315529124dea2d29f4b72507aa48f9ad (patch) | |
tree | 0f44c865f5e8540f6b709b65ade63b36411faac1 /etc/init.d/vyatta-ofr | |
parent | 737562c6ab9d800f880f0e7a9be43ac9508e1af8 (diff) | |
download | vyatta-cfg-01491ebb315529124dea2d29f4b72507aa48f9ad.tar.gz vyatta-cfg-01491ebb315529124dea2d29f4b72507aa48f9ad.zip |
Simplify the code
Diffstat (limited to 'etc/init.d/vyatta-ofr')
-rwxr-xr-x | etc/init.d/vyatta-ofr | 10 |
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 |