Skip to content

Commit

Permalink
Enable cache for copying to memory, card then disable it for safety
Browse files Browse the repository at this point in the history
  • Loading branch information
toys4me committed Feb 23, 2013
1 parent 27b88b4 commit 635e4ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions board/amlogic/xios/skeleton/etc/init.d/S10setup
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,18 @@ if [ "X$1" = "Xstart" ]; then
# Temporarily mount userdata
mount -t yaffs2 $USERDATA /tmp/userdata
echo "S10Setup: Copying userdata"
# turn cache back on speed this up
mount -o remount,async /media/sdcard
cp -rp /tmp/userdata $XBMC_USERDATA_PATH
if [ $? -neq 0 ] ; then
echo "S10setup: Copying Error"
else
echo "S10setup: Data Copied to card"
SDCARD_USERDATA=1
fi
sync
# turn cache back off for safety
mount -o remount,sync /media/sdcard
umount /tmp/userdata
fi

Expand Down

0 comments on commit 635e4ab

Please sign in to comment.