diff options
author | ptr1337 | 2021-04-10 07:30:01 +0200 |
---|---|---|
committer | ptr1337 | 2021-04-10 07:30:01 +0200 |
commit | 88dadc709c09a1de46c0d0cd781985ddd9fbe7c7 (patch) | |
tree | 939304b6cf447974310fd227c383244f8b076bfa | |
parent | 6be905ab91c96e85e988c67b6c6924d2ce661c8d (diff) | |
download | aur-88dadc709c09a1de46c0d0cd781985ddd9fbe7c7.tar.gz |
spelling
-rw-r--r-- | linux-manjaro-rpi4-cacule-mainline.install | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/linux-manjaro-rpi4-cacule-mainline.install b/linux-manjaro-rpi4-cacule-mainline.install new file mode 100644 index 000000000000..aad1de80d47b --- /dev/null +++ b/linux-manjaro-rpi4-cacule-mainline.install @@ -0,0 +1,74 @@ +post_install () { + if [ -f /boot/cmdline.txt.pacsave ]; then + mv /boot/cmdline.txt.pacsave /boot/cmdline.txt + fi + if [ -f /boot/cmdline.txt ]; then + echo "===> Keeping old cmdline.txt file..." + else + echo "===> Installing default cmdline.txt file to /boot/..." + echo "root=LABEL=ROOT_MNJRO rw rootwait console=serial0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=serial0,115200 elevator=noop usbhid.mousepoll=8 snd-bcm2835.enable_compat_alsa=0 audit=0" > /boot/cmdline.txt + fi + + if [ -f /boot/config.txt.pacsave ]; then + mv /boot/config.txt.pacsave /boot/config.txt + fi + if [ -f /boot/config.txt ]; then + echo "===> Keeping old config.txt file..." + else + echo "===> Installing default config.txt file to /boot/..." + echo "# See /boot/overlays/README for all available options" > /boot/config.txt + echo "" >> /boot/config.txt + echo "gpu_mem=64" >> /boot/config.txt + echo "initramfs initramfs-linux.img followkernel" >> /boot/config.txt + echo "kernel=kernel8.img" >> /boot/config.txt + echo "arm_64bit=1" >> /boot/config.txt + echo "disable_overscan=1" >> /boot/config.txt + echo "" >> /boot/config.txt + echo "#enable sound" >> /boot/config.txt + echo "dtparam=audio=on" >> /boot/config.txt + echo "#hdmi_drive=2" >> /boot/config.txt + echo "" >> /boot/config.txt + echo "#enable vc4" >> /boot/config.txt + echo "dtoverlay=vc4-fkms-v3d" >> /boot/config.txt + echo "max_framebuffers=2" >> /boot/config.txt + fi +} + +post_upgrade() { + if [ -f /boot/cmdline.txt.pacsave ]; then + mv /boot/cmdline.txt.pacsave /boot/cmdline.txt + fi + if [ -f /boot/cmdline.txt ]; then + echo "===> Keeping old cmdline.txt file..." + else + echo "root=LABEL=ROOT_MNJRO rw rootwait console=serial0,115200 console=tty1 selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 kgdboc=serial0,115200 elevator=noop usbhid.mousepoll=8 snd-bcm2835.enable_compat_alsa=0 audit=0" > /boot/cmdline.txt + fi + + if [ -f /boot/config.txt.pacsave ]; then + mv /boot/config.txt.pacsave /boot/config.txt + fi + if [ -f /boot/config.txt ]; then + echo "===> Keeping old config.txt file..." + else + echo "===> Installing default config.txt to /boot/..." + echo "# See /boot/overlays/README for all available options" > /boot/config.txt + echo "" >> /boot/config.txt + echo "gpu_mem=64" >> /boot/config.txt + echo "initramfs initramfs-linux.img followkernel" >> /boot/config.txt + echo "kernel=kernel8.img" >> /boot/config.txt + echo "arm_64bit=1" >> /boot/config.txt + echo "disable_overscan=1" >> /boot/config.txt + echo "" >> /boot/config.txt + echo "#enable sound" >> /boot/config.txt + echo "dtparam=audio=on" >> /boot/config.txt + echo "#hdmi_drive=2" >> /boot/config.txt + echo "" >> /boot/config.txt + echo "#enable vc4" >> /boot/config.txt + echo "dtoverlay=vc4-fkms-v3d" >> /boot/config.txt + echo "max_framebuffers=2" >> /boot/config.txt + fi +} + +post_remove() { + rm -f boot/initramfs-linux.img +} |