summaryrefslogtreecommitdiff
path: root/package/base-files/src/sbin
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-03-28 16:07:18 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2010-03-28 16:07:18 +0200
commit8bee65a9cbd1905e356ff468a48e90608a08a8e6 (patch)
treeafdb76c6fa9e0e91482680497f0f5c27c56a9d4b /package/base-files/src/sbin
parent98c4842cbff9e4802092c5011feb0ecbb8e4881d (diff)
parentbf5f8fc2eaded785753175367f7f1a52192c2d62 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/base-files/src/sbin')
-rwxr-xr-xpackage/base-files/src/sbin/adkupdate8
1 files changed, 6 insertions, 2 deletions
diff --git a/package/base-files/src/sbin/adkupdate b/package/base-files/src/sbin/adkupdate
index bc1082b1c..8a97495ed 100755
--- a/package/base-files/src/sbin/adkupdate
+++ b/package/base-files/src/sbin/adkupdate
@@ -23,7 +23,9 @@ check_exit() {
prepare() {
cd /
- umount -f /etc
+ if [ -x /sbin/cfgfs ];then
+ umount -f /etc
+ fi
mount -o remount,rw /
if [ "$system" == "RB532" ];then
mount -t yaffs2 /dev/mtdblock0 /boot
@@ -77,7 +79,9 @@ case $1 in
esac
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
umount -f /boot
elif [ "$system" == "FOXG20" ];then