Add section header to boot config

This commit is contained in:
Andrew D'Angelo 2023-08-05 09:49:22 -05:00
parent d57ad7688b
commit 86c79f407b

View File

@ -26,7 +26,7 @@ install: sharp.ko sharp.dtbo
install -D -m 0644 sharp.dtbo /boot/overlays/ install -D -m 0644 sharp.dtbo /boot/overlays/
# Add configuration line if it wasn't already there # Add configuration line if it wasn't already there
grep -qxF '$(BOOT_CONFIG_LINE)' /boot/config.txt \ grep -qxF '$(BOOT_CONFIG_LINE)' /boot/config.txt \
|| echo '$(BOOT_CONFIG_LINE)' >> /boot/config.txt || echo '[all]\n$(BOOT_CONFIG_LINE)' >> /boot/config.txt
# Add auto-load module line if it wasn't already there # Add auto-load module line if it wasn't already there
grep -qxF 'sharp' /etc/modules \ grep -qxF 'sharp' /etc/modules \
|| echo 'sharp' >> /etc/modules || echo 'sharp' >> /etc/modules