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/Makefile | 2 +- package/busybox/files/network.init | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package/busybox/Makefile b/package/busybox/Makefile index 8d6ff4f9f..47bb590fb 100644 --- a/package/busybox/Makefile +++ b/package/busybox/Makefile @@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:= busybox PKG_VERSION:= 1.17.2 -PKG_RELEASE:= 1 +PKG_RELEASE:= 2 PKG_MD5SUM:= 7360b7138b899ee7fc885791c740c3c3 PKG_DESCR:= Core utilities for embedded systems PKG_SECTION:= base 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