Module Name: src
Committed By: mrg
Date: Tue Oct 23 09:25:33 UTC 2018
Modified Files:
src/etc/rc.d: network
Log Message:
only flush routes in stop routine if flushroutes is true, same as
the start up.
To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/etc/rc.d/network
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/etc/rc.d/network
diff -u src/etc/rc.d/network:1.75 src/etc/rc.d/network:1.76
--- src/etc/rc.d/network:1.75 Fri Jul 27 15:31:02 2018
+++ src/etc/rc.d/network Tue Oct 23 09:25:33 2018
@@ -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 @@ network_stop_route()
{
# flush routes
#
- /sbin/route -qn flush
-
+ if checkyesno flushroutes; then
+ /sbin/route -qn flush
+ fi
}
load_rc_config $name