summaryrefslogtreecommitdiff
path: root/package/cfgfs
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-02-02 22:04:08 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-02-02 22:04:08 +0100
commitb2ae8e3c7ba672368406ece861ae05a9051f4593 (patch)
tree92f26e296e6726f798a92ee996695dd736fc2b5f /package/cfgfs
parent5ae019d73004c03e1e53bbdf5ea1f2315fb4b883 (diff)
remove empty directories after origin /etc files are removed (workarounds a seldom segfault)
Diffstat (limited to 'package/cfgfs')
-rw-r--r--package/cfgfs/Makefile2
-rw-r--r--package/cfgfs/src/fwcf.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/package/cfgfs/Makefile b/package/cfgfs/Makefile
index 2d824e1bb..57f394c0d 100644
--- a/package/cfgfs/Makefile
+++ b/package/cfgfs/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= cfgfs
PKG_VERSION:= 1.0.8
-PKG_RELEASE:= 5
+PKG_RELEASE:= 6
PKG_DESCR:= compressed config filesystem
PKG_SECTION:= base
PKG_URL:= http://openadk.org/
diff --git a/package/cfgfs/src/fwcf.sh b/package/cfgfs/src/fwcf.sh
index ddcbfcc50..b37da0bcd 100644
--- a/package/cfgfs/src/fwcf.sh
+++ b/package/cfgfs/src/fwcf.sh
@@ -257,7 +257,6 @@ if test $1 = commit; then
cfgfs.helper -Z - /tmp/.cfgfs/status.asz
cd /tmp/.cfgfs/root
rm -f /tmp/.cfgfs/temp/.cfgfs_* /tmp/.cfgfs/temp/.rnd
- find /tmp/.cfgfs/temp -type d -empty -delete
find . -type f | while read f; do
f=${f#./}
if [[ ! -e /tmp/.cfgfs/temp/$f ]]; then
@@ -269,6 +268,7 @@ if test $1 = commit; then
y=$(cd ../temp; md5sum "$f" 2>/dev/null)
[[ "$x" = "$y" ]] && rm "../temp/$f"
done
+ find /tmp/.cfgfs/temp -type d -empty -delete
rv=0
if [ $mtd -eq 1 ]; then
if ! ( cfgfs.helper -M /tmp/.cfgfs/temp | eval $mtdtool -F write - cfgfs ); then