From 32f1062d6f60bf4a38c17413660ae1b4634d740c Mon Sep 17 00:00:00 2001 From: codeworkx Date: Wed, 25 May 2011 15:38:45 +0200 Subject: updater.sh: set permissions on /efs recursive after restoring the efsbackup from sdcard to the new efs partition Change-Id: Ia99f13036ed61e0f85db9a1f479e1e71598a1a84 --- updater.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'updater.sh') 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." -- cgit v1.1