#!/bin/sh
progdir=$(cd $(dirname $0); pwd)
OVERDIR=/mnt/mmc/CFW/retroarch/.retroarch/config
cp -f $progdir/overlay/GB.cfg "$OVERDIR/Gambatte/GB.cfg"
cp -f $progdir/overlay/GB.cfg "$OVERDIR/Gearboy/GB.cfg"
cp -f $progdir/overlay/Overlay-GB-ON.sh $progdir
$progdir/overlay/printstr "GB Overlay-ON"
sleep 2
rm -f $0
sync
