Browse Source

fix problem with adkupdate, reported by Tobias

Waldemar Brodkorb 14 years ago
parent
commit
94fe759480
2 changed files with 5 additions and 4 deletions
  1. 1 1
      package/base-files/Makefile
  2. 4 3
      package/base-files/src/sbin/adkupdate

+ 1 - 1
package/base-files/Makefile

@@ -6,7 +6,7 @@ include $(TOPDIR)/mk/rootfs.mk
 
 PKG_NAME:=		base-files
 PKG_VERSION:=		1.0
-PKG_RELEASE:=		44
+PKG_RELEASE:=		45
 PKG_SECTION:=		base
 PKG_DESCR:=		basic files and scripts
 

+ 4 - 3
package/base-files/src/sbin/adkupdate

@@ -29,8 +29,9 @@ check_exit() {
 prepare() {
 	cd /
 	if [ -x /sbin/cfgfs ];then
-		pkill crond
-		umount -f /etc
+		mount -o bind /tmp/.cfgfs/root /etc
+		check_exit
+		mount -o remount,rw /etc
 		check_exit
 	fi
 	mount -o remount,rw /
@@ -90,7 +91,7 @@ esac
 
 sync
 if [ -x /sbin/cfgfs ];then
-	mount -o bind /etc /tmp/.cfgfs/root
+	umount /etc
 fi
 if [ "$system" == "RB532" ];then
 	umount -f /boot