From 3e94856524be7207bbfab077f2170bdfd3c5aee0 Mon Sep 17 00:00:00 2001 From: Matheson Steplock Date: Sat, 5 Feb 2022 05:09:09 +0000 Subject: [PATCH] reset machine type --- homeassistant-supervised/DEBIAN/postrm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/homeassistant-supervised/DEBIAN/postrm b/homeassistant-supervised/DEBIAN/postrm index c7033a3..e405f0c 100755 --- a/homeassistant-supervised/DEBIAN/postrm +++ b/homeassistant-supervised/DEBIAN/postrm @@ -20,9 +20,15 @@ function undo_divert () { --divert /etc/network/interfaces.real /etc/network/interfaces } +function cleanup () { + info "Resetting debconf selections" + echo PURGE | debconf-communicate homeassistant-supervised >/dev/null +} + case "$1" in remove|abort-install|disappear) info Undo divert on "$@" undo_divert + cleanup ;; esac