Initialize Git Repository: 'Argon-One-Daemon'
All checks were successful
Argon One Daemon (Bookworm) / Argon One Daemon [arm64] (push) Successful in 12s
Argon One Daemon (Noble) / Argon One Daemon [arm64] (push) Successful in 28s
Argon One Daemon (Trixie) / Argon One Daemon [arm64] (push) Successful in 29s

This commit is contained in:
Cantibra
2026-01-26 06:09:54 +01:00
commit 4631083627
19 changed files with 925 additions and 0 deletions

32
root/DEBIAN/postrm Normal file
View File

@@ -0,0 +1,32 @@
#!/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}"
if [ -d '/run/systemd/system' ]; then
/usr/bin/systemctl --system daemon-reload > '/dev/null' 2>&1 || \
/usr/bin/true
fi
case "${1}" in
remove|purge)
if [ -x '/usr/bin/deb-systemd-helper' ]; then
/usr/bin/deb-systemd-helper purge 'argon-one.service' > '/dev/null' 2>&1 || \
/usr/bin/true
/usr/bin/deb-systemd-helper unmask 'argon-one.service' > '/dev/null' 2>&1 || \
/usr/bin/true
fi
/usr/bin/sed --in-place 's/dtparam=i2c_arm=on/dtparam=i2c_arm=off/' "${BOOT}/config.txt"
/usr/bin/sed --in-place 's/console=tty0/console=tty0 console=ttyS1,115200/' "${BOOT}/cmdline.txt"
/usr/bin/echo ''
/usr/bin/echo '##################################################'
/usr/bin/echo '# #'
/usr/bin/echo '# ! Restart the device to unload the functions ! #'
/usr/bin/echo '# #'
/usr/bin/echo '##################################################'
/usr/bin/echo ''
;;
esac