From bf49e59e3eb4fe12167812bc1b4531742eddc383 Mon Sep 17 00:00:00 2001 From: Yun Zheng Hu Date: Mon, 19 Sep 2011 00:01:52 +0200 Subject: Don't do anything if the interface doesn't exist iproute2_post_stop() does now check if the network interface still exist. Reported-by: Yun Zheng Hu X-Gentoo-Bug: 379575 X-Gentoo-Bug-URL: https://bugs.gentoo.org/379575 --- net/iproute2.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/iproute2.sh b/net/iproute2.sh index 2e02fbe0..765294a6 100644 --- a/net/iproute2.sh +++ b/net/iproute2.sh @@ -301,6 +301,9 @@ iproute2_post_start() iproute2_post_stop() { + # Only do something if the interface actually exist + _exists || return + # Kernel may not have IP built in if [ -e /proc/net/route ]; then local rules="$(service_get_value "ip_rule")" -- cgit v1.2.3