#!/bin/sh set -e set -u 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 BOOT=$(/usr/bin/grep '/boot' '/etc/fstab' | /usr/bin/mawk '$1 !~ /^#/ && $2 ~ /^[/]/ {print $2}') /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" ;; esac