Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/rc.d add a sync to make it less likely to boot with /etc...



details:   https://anonhg.NetBSD.org/src/rev/cc4265f378c2
branches:  trunk
changeset: 783613:cc4265f378c2
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Dec 31 23:21:27 2012 +0000

description:
add a sync to make it less likely to boot with /etc pointing to nothing after
a crash.

diffstat:

 etc/rc.d/bootconf.sh |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 05000c5204cc -r cc4265f378c2 etc/rc.d/bootconf.sh
--- a/etc/rc.d/bootconf.sh      Mon Dec 31 21:45:36 2012 +0000
+++ b/etc/rc.d/bootconf.sh      Mon Dec 31 23:21:27 2012 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: bootconf.sh,v 1.14 2010/11/01 14:42:08 christos Exp $
+# $NetBSD: bootconf.sh,v 1.15 2012/12/31 23:21:27 christos Exp $
 #
 
 # PROVIDE: bootconf
@@ -74,6 +74,7 @@
        *)
                rm -f /etc/etc.current
                ln -s etc.$conf /etc/etc.current
+               sync
                ;;
        esac
 



Home | Main Index | Thread Index | Old Index