diff options
author | madmonkey1907 <madfkingmonkey@gmail.com> | 2017-12-01 10:12:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-01 10:12:26 +0300 |
commit | 4a1cb725054450c7c2e74d45c241fcc7a61a5aa3 (patch) | |
tree | 112b6ce98d265feeb3f69ff8300f30f904eba783 | |
parent | 6a40de3902d2f5ccd5c1d5683d32b7aa67d98981 (diff) | |
parent | cf57b43ef559471006b07abca763aa58f36efc62 (diff) |
Merge pull request #37 from DanTheMan827/png-splash
add /bin/decodepng and convert the splash to png format
-rw-r--r-- | .gitattributes | 1 | ||||
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | .gitmodules | 3 | ||||
m--------- | 3rdparty/decodepng | 0 | ||||
-rw-r--r-- | mod/hakchi/init | 4 | ||||
-rw-r--r-- | mod/hakchi/rootfs/etc/hakchi.fb | bin | 11576 -> 0 bytes | |||
-rw-r--r-- | mod/hakchi/rootfs/etc/hakchi.png | bin | 0 -> 4620 bytes | |||
-rw-r--r-- | mod/hakchi/rootfs/etc/preinit.d/b0010_functions | 3 | ||||
-rw-r--r-- | mod/hakchi/rootfs/etc/preinit.d/p7010_bootlogo | 6 |
9 files changed, 10 insertions, 8 deletions
diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..c329ef6 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eof=lf @@ -8,5 +8,6 @@ kernel*/ data/ dump/ mod/bin/ +mod/hakchi/rootfs/bin/decodepng mod/hakchi/transfer/ .DS_Store diff --git a/.gitmodules b/.gitmodules index 549fc82..dbef24e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -10,3 +10,6 @@ [submodule "3rdparty/mkbootfs"] path = 3rdparty/mkbootfs url = https://github.com/osm0sis/mkbootfs/ +[submodule "3rdparty/decodepng"] + path = 3rdparty/decodepng + url = https://github.com/DanTheMan827/decodepng.git diff --git a/3rdparty/decodepng b/3rdparty/decodepng new file mode 160000 +Subproject ac7f36a559396b2acae2bec3302078ac49b9eb1 diff --git a/mod/hakchi/init b/mod/hakchi/init index f3c78de..50fc66a 100644 --- a/mod/hakchi/init +++ b/mod/hakchi/init @@ -10,7 +10,7 @@ init(){ /bin/busybox --install -s /bin/ mkdir -p "$temppath" for dir in etc lib usr; do - [ -e "/$1" ] || ln -s "$mountpoint/$1" "/$1" + [ -e "/$dir" ] || ln -s "$mountpoint/$dir" "/$dir" done export PATH="/sbin:$modpath/rootfs/bin:/bin:$mountpoint/sbin:/usr/sbin:$mountpoint/bin:/usr/bin" @@ -18,7 +18,7 @@ init(){ source "$modpath/script/base" if [ -d "$modpath/transfer" ]; then - cf_usb='n' + export cf_usb='n' source "$modpath/script/transfer" else mount_base diff --git a/mod/hakchi/rootfs/etc/hakchi.fb b/mod/hakchi/rootfs/etc/hakchi.fb Binary files differdeleted file mode 100644 index a261147..0000000 --- a/mod/hakchi/rootfs/etc/hakchi.fb +++ /dev/null diff --git a/mod/hakchi/rootfs/etc/hakchi.png b/mod/hakchi/rootfs/etc/hakchi.png Binary files differnew file mode 100644 index 0000000..f18bc87 --- /dev/null +++ b/mod/hakchi/rootfs/etc/hakchi.png diff --git a/mod/hakchi/rootfs/etc/preinit.d/b0010_functions b/mod/hakchi/rootfs/etc/preinit.d/b0010_functions index ea73c19..7ec9965 100644 --- a/mod/hakchi/rootfs/etc/preinit.d/b0010_functions +++ b/mod/hakchi/rootfs/etc/preinit.d/b0010_functions @@ -335,7 +335,8 @@ showImage(){ [ -f "$image" ] || image="$rootfs$1" [ -f "$image" ] || image="$squashfs$1" [ -f "$image" ] || return 1 - xz -cd "$image" > "/dev/fb0" & + decodepng "$image" > "/dev/fb0" & + return 0 } hwmon(){ diff --git a/mod/hakchi/rootfs/etc/preinit.d/p7010_bootlogo b/mod/hakchi/rootfs/etc/preinit.d/p7010_bootlogo index 9beeade..75f57f6 100644 --- a/mod/hakchi/rootfs/etc/preinit.d/p7010_bootlogo +++ b/mod/hakchi/rootfs/etc/preinit.d/p7010_bootlogo @@ -1,5 +1 @@ -if [ -f "$cfg_boot_logo" ]; then - showImage "$cfg_boot_logo" -else - showImage "$rootfs/etc/$modname.fb" -fi +showImage "$cfg_boot_logo" || showImage "$rootfs/etc/$modname.png" |