summaryrefslogtreecommitdiffstats
path: root/updater.sh
diff options
context:
space:
mode:
authorcodeworkx <daniel.hillenbrand@codeworkx.de>2011-05-25 15:38:45 +0200
committercodeworkx <daniel.hillenbrand@codeworkx.de>2011-05-25 15:38:45 +0200
commit32f1062d6f60bf4a38c17413660ae1b4634d740c (patch)
treef6ee9c3f39ef20fd75d9220d9e6a90ba681830a0 /updater.sh
parentdf3cea31446851c6872ef744a2fc89898dd0380e (diff)
downloaddevice_samsung_aries-common-32f1062d6f60bf4a38c17413660ae1b4634d740c.zip
device_samsung_aries-common-32f1062d6f60bf4a38c17413660ae1b4634d740c.tar.gz
device_samsung_aries-common-32f1062d6f60bf4a38c17413660ae1b4634d740c.tar.bz2
updater.sh: set permissions on /efs recursive after restoring the efsbackup from sdcard to the new efs partition
Change-Id: Ia99f13036ed61e0f85db9a1f479e1e71598a1a84
Diffstat (limited to 'updater.sh')
-rw-r--r--updater.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/updater.sh b/updater.sh
index 377ba8a..fc3d694 100644
--- a/updater.sh
+++ b/updater.sh
@@ -126,8 +126,16 @@ elif /tmp/busybox test -e /dev/block/mtdblock0 ; then
exit 6
fi
fi
-
+
+ # copy efsbackup from sdcard to new efs partition
/tmp/busybox cp -R /sdcard/backup/efs /
+
+ # set permissions on /efs
+ /tmp/busybox chown -R radio:radio /efs
+ /tmp/busybox chown -R bluetooth:bluetooth /efs/bluetooth
+ /tmp/busybox chmod -R 660 /efs
+
+ # unmount /efs
/tmp/busybox umount -l /efs
else
/tmp/busybox echo "Cannot restore efs."