Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing fake_vcgencmd for Pine64 #5095

Merged
merged 1 commit into from
Apr 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions config/boards/pine64.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,16 @@ BOARDFAMILY="sun50iw1"
BOOTCONFIG="pine64_plus_defconfig"
KERNEL_TARGET="legacy,current,edge"
FULL_DESKTOP="yes"

function post_family_tweaks__fake_vcgencmd() {
display_alert "$BOARD" "Installing fake vcgencmd" "info"
# Never add this to Raspberry Pi board config files such as rpi4b.conf

chroot $SDCARD /bin/bash -c "curl -o /usr/bin/vcgencmd \"https://raw.githubusercontent.com/clach04/fake_vcgencmd/0.0.1/vcgencmd\""
chroot $SDCARD /bin/bash -c "chmod 755 /usr/bin/vcgencmd"
chroot $SDCARD /bin/bash -c "mkdir -p /usr/share/doc/fake_vcgencmd"
chroot $SDCARD /bin/bash -c "curl -o /usr/share/doc/fake_vcgencmd/LICENSE \"https://raw.githubusercontent.com/clach04/fake_vcgencmd/0.0.1/LICENSE\""
chroot $SDCARD /bin/bash -c "curl -o /usr/share/doc/fake_vcgencmd/README.md \"https://raw.githubusercontent.com/clach04/fake_vcgencmd/0.0.1/README.md\""

return 0
}