Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bakueikozo
Created January 10, 2020 05:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bakueikozo/ec985da96541992a2a1bab3eac6a4a9e to your computer and use it in GitHub Desktop.
Save bakueikozo/ec985da96541992a2a1bab3eac6a4a9e to your computer and use it in GitHub Desktop.
#!/system/bin/sh
# save to usb as /bin/sync
echo "this script is for game lock only 20 " > /dev/console
BASEDIR="/mnt/vendor/res/local/"
LANGS=("English" "Japanese" "Korean" "Simplified_Chinese" "Traditional_Chinese");
for language in "${LANGS[@]}"
do
cd $BASEDIR/$language
# pwd > /dev/console
if [ -e games_org.ini ]; then
echo "lock from backup"
echo "rw remount" > /dev/console
mount -o rw,remount /mnt/vendor
echo "lock only 20 games from backup"
cp games_org.ini games.ini
rm games_org.ini
echo "ro remount" > /dev/console
mount -o ro,remount /mnt/vendor
else
echo "no work" > /dev/console
fi
done
/system/bin/sync
reboot -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment