summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-11-12 09:47:42 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-11-12 09:47:42 -0800
commit5956c4053c0de30a6d9028773b3540dc37534923 (patch)
tree0ec3ec000dfa99ce910d455409b7723084e1cdaa /etc
parentdd187d067a88fcf2bc8a3de955ea87de406c6d30 (diff)
downloadvyatta-cfg-5956c4053c0de30a6d9028773b3540dc37534923.tar.gz
vyatta-cfg-5956c4053c0de30a6d9028773b3540dc37534923.zip
Change options to floppy mount
Try and update floppy synchronously for super block updates. This attempts to address issues where floppy is ejected without unmounting; which is not completely safe.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/init.d/vyatta-ofr4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/init.d/vyatta-ofr b/etc/init.d/vyatta-ofr
index ac8d861..ba972eb 100755
--- a/etc/init.d/vyatta-ofr
+++ b/etc/init.d/vyatta-ofr
@@ -67,7 +67,7 @@ have_rl_system () {
# if necessary, provide initial config
init_bootfile () {
- if [ ! -d /media/floppy/config -a -b /dev/fd0 ]
+ if [ -b /dev/fd0 ] && [ ! -d /media/floppy/config ]
then
[ -d /media/floppy ] || mkdir -p /media/floppy
@@ -75,7 +75,7 @@ init_bootfile () {
# and it will fail if no floppy present
# Note: no good way to test for floppy present without causing I/O error
mount /dev/fd0 /media/floppy \
- -o sync,noexec,nodev,noatime,nosuid 2>/dev/null
+ -o sync,dirsync,noexec,nodev,noatime,nodiratime,nosuid 2>/dev/null
fi
[ -d /media/floppy/config ] &&