diff options
author | madmonkey1907 <madfkingmonkey@gmail.com> | 2017-10-03 19:16:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-03 19:16:43 +0300 |
commit | acf7d64fd40154fde980ef9ca939e04e68b7ee6f (patch) | |
tree | 62c8215a1f6858b394163c0ba75ba047a75b6bf5 | |
parent | a1f00b1ca4d571968ad008f47e3eb5ceb79e5f63 (diff) | |
parent | 7c928412a47858752e5eac0f0c33742b1a25fb34 (diff) |
Merge pull request #28 from ClusterM/master
Permissions fix, obsolete code removed, chmenu fixed to work on SNES
-rwxr-xr-x | mod/hakchi/rootfs/bin/chmenu | 7 | ||||
-rw-r--r-- | mod/hakchi/script/install | 5 |
2 files changed, 4 insertions, 8 deletions
diff --git a/mod/hakchi/rootfs/bin/chmenu b/mod/hakchi/rootfs/bin/chmenu index dfff917..5ae4fdc 100755 --- a/mod/hakchi/rootfs/bin/chmenu +++ b/mod/hakchi/rootfs/bin/chmenu @@ -21,18 +21,17 @@ echo $1 > "$state_file" echo New directory: $targetpath if [ "$1" != "000" ]; then - if [ ! -f "$targetpath/title.fnt" ]; then + if [ -f "$rootfs$gamepath/title.fnt" ] && [ ! -f "$targetpath/title.fnt" ]; then ln -s "$rootfs$gamepath/title.fnt" "$targetpath/title.fnt" fi - if [ ! -f "$targetpath/copyright.fnt" ]; then + if [ -f "$rootfs$gamepath/copyright.fnt" ] && [ ! -f "$targetpath/copyright.fnt" ]; then ln -s "$rootfs$gamepath/copyright.fnt" "$targetpath/copyright.fnt" fi fi pkill -KILL clover-mcp pkill -KILL ReedPlayer-Clover -rm -rf /var/cache/clover overmount_games -exec clover-mcp +/etc/init.d/S81clover-mcp start diff --git a/mod/hakchi/script/install b/mod/hakchi/script/install index f8d6d0a..fdd3df9 100644 --- a/mod/hakchi/script/install +++ b/mod/hakchi/script/install @@ -8,13 +8,10 @@ mod_uninstall(){ mod_repair(){ mod_repair_etc full chmod 755 $modpath/rootfs/bin/* + chmod 755 $modpath/rootfs/etc/init.d/* copy "/bin/" "$rootfs/bin/" copy "/sbin/cryptsetup" "$rootfs/bin/cryptsetup" copy "$modpath/rootfs/" "$rootfs/" - - # This file required by hakchi2 kernel... - echo "hakchi_enabled=y" > "$temppath/config" - copy "$temppath/config" "$installpath/" } mod_install(){ |