Skip to content

Commit 5ed5901

Browse files
committed
- Temp WAR: Just creating grub config inside the Linux RAM image
- FIx graphical bugs with banner
1 parent cba0bfc commit 5ed5901

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

board/pppwn/post-build.sh

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,25 @@ set -e
33

44
chmod +x "${TARGET_DIR}/etc/init.d/S50pppwn"
55

6-
# Remove conflicting grub.cfg from target directory
7-
rm -f "${TARGET_DIR}/boot/grub/grub.cfg"
6+
# Ensure boot/grub directory exists
7+
mkdir -p "${TARGET_DIR}/boot/grub"
8+
9+
# Create the correct grub.cfg for initrd
10+
cat > "${TARGET_DIR}/boot/grub/grub.cfg" << EOF
11+
set default="0"
12+
set timeout="5"
13+
14+
if [ "\${grub_platform}" = "efi" ]; then
15+
set prefix=(cd0)/boot/grub
16+
menuentry "PPPwnLive" {
17+
linux (cd0)/boot/bzImage root=/dev/ram0 console=tty1
18+
initrd (cd0)/boot/initrd
19+
}
20+
else
21+
set prefix=(cd)/boot/grub
22+
menuentry "PPPwnLive" {
23+
linux (cd)/boot/bzImage root=/dev/ram0 console=tty1
24+
initrd (cd)/boot/initrd
25+
}
26+
fi
27+
EOF

board/pppwn/rootfs_overlay/etc/banner

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
Welcome to PPPwnLive! Please make sure to have your Ethernet cable plugged in and connected to the PlayStation 4.
99

1010
Credits:
11+
- SoftwareRat (https://github.com/SoftwareRat/pppwn_live) for creating this project
1112
- xfangfang (https://github.com/xfangfang/PPPwn_cpp) for developing the C++ version of PPPwn
1213
- TheFloW (https://github.com/TheOfficialFloW/PPPwn) for the original discovery and creation of PPPwn
13-
- SiSTR0 (https://github.com/GoldHEN/GoldHEN) for developing GoldHEN
14+
- SiSTR0 (https://github.com/GoldHEN/GoldHEN) for developing GoldHEN
15+

0 commit comments

Comments
 (0)