Initialize Git Repository: 'Geekwom-NASPi-Daemon'
Geekwom NASPi Daemon / Geekwom NASPi Daemon (arm64, cicd.any, bookworm trixie noble, main) (push) Successful in 12s

This commit is contained in:
Cantibra
2026-05-04 21:21:47 +02:00
commit 39264f7fc7
15 changed files with 696 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
#!/usr/bin/sh
set -e
set -u
BOOT=$(/usr/bin/grep '/boot' '/etc/fstab' | /usr/bin/mawk '$1 !~ /^#/ && $2 ~ /^[/]/ {print $2}')
/usr/bin/test -n "${BOOT}"
case "${1}" in
install)
/usr/bin/echo '' >> "${BOOT}/config.txt"
/usr/bin/echo '## pwm-2chan' >> "${BOOT}/config.txt"
/usr/bin/echo '## Load the Pulse-Width Modulation driver.' >> "${BOOT}/config.txt"
/usr/bin/echo '##' >> "${BOOT}/config.txt"
/usr/bin/echo 'dtoverlay=pwm-2chan' >> "${BOOT}/config.txt"
/usr/bin/echo ''
/usr/bin/echo '########################################################'
/usr/bin/echo '# #'
/usr/bin/echo '# ! Restart the device to load the necessary drivers ! #'
/usr/bin/echo '# #'
/usr/bin/echo '########################################################'
/usr/bin/echo ''
;;
esac