This repository has been archived by the owner on Feb 18, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 62f3cde
Showing
5 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
|
||
# Init scripts are executed with "start" argument when system boots and with "stop" argument during shutdown | ||
# So we need to check that it's boot state, not shutdown | ||
[ -z "$1" ] || [ "$1" == "start" ] || exit 0 | ||
|
||
source "/etc/preinit" | ||
script_init | ||
|
||
ls -l "$squashfs$gamepath" | grep 'CLV-' | awk '{ print $9 }' | while read gamecode; do | ||
if [ -f "$installpath/boxart/$gamecode.png" ]; then | ||
mount -o bind "$installpath/boxart/$gamecode.png" "$squashfs$gamepath/${gamecode}/${gamecode}.png" | ||
fi | ||
if [ -f "$installpath/boxart/${gamecode}_small.png" ]; then | ||
mount -o bind "$installpath/boxart/${gamecode}_small.png" "$squashfs$gamepath/${gamecode}/${gamecode}_small.png" | ||
fi | ||
done < /dev/stdin |
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
local script="S51customboxart" | ||
copy "$script" "$rootfs/etc/init.d/" | ||
chmod +x "$rootfs/etc/init.d/$script" | ||
mkdir -p "$installpath/boxart/" | ||
return 1 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
=== Custom Boxart === | ||
|
||
This module creates a folder at /var/lib/hakchi/boxart | ||
|
||
You can upload custom boxart png images over FTP to this folder. | ||
|
||
Example filenames: | ||
|
||
CLV-P-SAABE.png | ||
CLV-P-SAABE_small.png | ||
|
||
If any of the two files exist for the respective game code, it will be used instead of the stock. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
local script="S51customboxart" | ||
rm "$rootfs/etc/init.d/$script" | ||
rm -r "$installpath/boxart/" |