Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d only flush routes in stop routine if flushroutes is...
details:   https://anonhg.NetBSD.org/src/rev/ea897f389d87
branches:  trunk
changeset: 445335:ea897f389d87
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Oct 23 09:25:33 2018 +0000
description:
only flush routes in stop routine if flushroutes is true, same as
the start up.
diffstat:
 etc/rc.d/network |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
diffs (23 lines):
diff -r a05c15e0879d -r ea897f389d87 etc/rc.d/network
--- a/etc/rc.d/network  Tue Oct 23 09:23:45 2018 +0000
+++ b/etc/rc.d/network  Tue Oct 23 09:25:33 2018 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: network,v 1.75 2018/07/27 15:31:02 roy Exp $
+# $NetBSD: network,v 1.76 2018/10/23 09:25:33 mrg Exp $
 #
 
 # PROVIDE: network
@@ -567,8 +567,9 @@
 {
        # flush routes
        #
-       /sbin/route -qn flush
-
+       if checkyesno flushroutes; then
+               /sbin/route -qn flush
+       fi
 }
 
 load_rc_config $name
Home |
Main Index |
Thread Index |
Old Index