Last active
August 10, 2018 18:27
-
-
Save nicholasadamou/863342ca7d081f10d7c68618d67d1748 to your computer and use it in GitHub Desktop.
update re4son-kernel for Raspberry Pi 2/3
This file contains hidden or 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
#!/bin/bash | |
# Installs/updates re4son-kernel for Raspberry Pi 2/3 | |
# see: https://re4son-kernel.com/re4son-pi-kernel/ | |
x="/usr/local/src" | |
rm -rf "${x:?}"/* | |
wget -O "$x"/re4son-kernel_current.tar.xz https://re4son-kernel.com/download/re4son-kernel-current/ | |
tar -xJf "$x"/re4son-kernel_current.tar.xz -C "$x" | |
if [ -e "$x"/re4son-kernel_current.tar.xz ]; then | |
rm -rf "$x"/re4son-kernel_current.tar.xz | |
fi | |
boot_dir='/dev/mmcblk0p1' | |
if [ "$(df -P /boot | tail -1 | cut -d' ' -f 1)" = "$boot_dir" ]; then | |
echo "$boot_dir is already mounted @ /boot/." | |
else | |
mount "$boot_dir" /boot/ | |
fi | |
cd "$x"/re4son-kernel_* | |
./install.sh | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment