Browse Source

check for cfgfs

Waldemar Brodkorb 15 years ago
parent
commit
5888b9a982
1 changed files with 6 additions and 2 deletions
  1. 6 2
      package/base-files/src/sbin/adkupdate

+ 6 - 2
package/base-files/src/sbin/adkupdate

@@ -23,7 +23,9 @@ check_exit() {
 
 
 prepare() {
 prepare() {
 	cd /
 	cd /
-	umount -f /etc
+	if [ -x /sbin/cfgfs ];then
+		umount -f /etc
+	fi
 	mount -o remount,rw /
 	mount -o remount,rw /
 	if [ "$system" == "RB532" ];then
 	if [ "$system" == "RB532" ];then
 		mount -t yaffs2 /dev/mtdblock0 /boot
 		mount -t yaffs2 /dev/mtdblock0 /boot
@@ -77,7 +79,9 @@ case $1 in
 esac
 esac
 
 
 sync
 sync
-mount -o bind /etc /tmp/.cfgfs/root
+if [ -x /sbin/cfgfs ];then
+	mount -o bind /etc /tmp/.cfgfs/root
+fi
 if [ "$system" == "RB532" ];then
 if [ "$system" == "RB532" ];then
 	umount -f /boot
 	umount -f /boot
 elif [ "$system" == "FOXG20" ];then
 elif [ "$system" == "FOXG20" ];then