Browse Source

check before calling ifdown if config exist

Waldemar Brodkorb 13 years ago
parent
commit
1d2ffa2666
2 changed files with 2 additions and 1 deletions
  1. 1 1
      package/busybox/Makefile
  2. 1 0
      package/busybox/files/network.init

+ 1 - 1
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

+ 1 - 0
package/busybox/files/network.init

@@ -12,6 +12,7 @@ start)
 	ifup -a
 	;;
 autostop|stop)
+	[ -f /etc/network/interfaces ] || exit 1
 	ifdown -a
 	;;
 restart)