Files
Argon-One-Daemon/root/DEBIAN/postrm
Cantibra 4631083627
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
Initialize Git Repository: 'Argon-One-Daemon'
2026-01-26 06:09:54 +01:00

33 lines
1.2 KiB
Bash

#!/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