diff options
Diffstat (limited to 'mod/hakchi/rootfs/bin/chmenu')
-rwxr-xr-x | mod/hakchi/rootfs/bin/chmenu | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/mod/hakchi/rootfs/bin/chmenu b/mod/hakchi/rootfs/bin/chmenu index 5ae4fdc..9f67d83 100755 --- a/mod/hakchi/rootfs/bin/chmenu +++ b/mod/hakchi/rootfs/bin/chmenu @@ -2,23 +2,23 @@ source /etc/preinit script_init -state_file=$installpath/menu +state_file="$installpath/menu" [ -z "$1" ] && exit 1 -[ -f "$state_file" ] && prev_code=$(cat "$state_file") || prev_code=000 +[ -f "$state_file" ] && prev_code="$(cat "$state_file")" || prev_code="000" [ "$1" == "$prev_code" ] && exit 1 -echo Switching to menu $1 +echo "Switching to menu $1" if [ "$1" == "000" ]; then - targetpath=$rootfs$gamepath + targetpath="$rootfs$gamepath" else - targetpath=$rootfs$gamepath/$1 + targetpath="$rootfs$gamepath/$1" fi [ -d "$targetpath" ] || exit 1 -echo $1 > "$state_file" +echo "$1" > "$state_file" -echo New directory: $targetpath +echo "New directory: $targetpath" if [ "$1" != "000" ]; then if [ -f "$rootfs$gamepath/title.fnt" ] && [ ! -f "$targetpath/title.fnt" ]; then @@ -29,9 +29,8 @@ if [ "$1" != "000" ]; then fi fi -pkill -KILL clover-mcp -pkill -KILL ReedPlayer-Clover +uistop +rm -rf /var/cache/clover overmount_games - -/etc/init.d/S81clover-mcp start +uistart |