소스 검색

check before calling ifdown if config exist

Waldemar Brodkorb 13 년 전
부모
커밋
1d2ffa2666
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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)