From 1d2ffa266619f35977e7d429ae9eaf06d73c827e Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 8 Nov 2010 17:22:49 +0100 Subject: check before calling ifdown if config exist --- package/busybox/files/network.init | 1 + 1 file changed, 1 insertion(+) (limited to 'package/busybox/files') diff --git a/package/busybox/files/network.init b/package/busybox/files/network.init index ee70efcbf..4989fcbcb 100644 --- a/package/busybox/files/network.init +++ b/package/busybox/files/network.init @@ -12,6 +12,7 @@ start) ifup -a ;; autostop|stop) + [ -f /etc/network/interfaces ] || exit 1 ifdown -a ;; restart) -- cgit v1.2.3