-
-
Save bakueikozo/ec985da96541992a2a1bab3eac6a4a9e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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