reset machine type
This commit is contained in:
parent
089222313e
commit
3e94856524
1 changed files with 6 additions and 0 deletions
|
@ -20,9 +20,15 @@ function undo_divert () {
|
||||||
--divert /etc/network/interfaces.real /etc/network/interfaces
|
--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
|
case "$1" in
|
||||||
remove|abort-install|disappear)
|
remove|abort-install|disappear)
|
||||||
info Undo divert on "$@"
|
info Undo divert on "$@"
|
||||||
undo_divert
|
undo_divert
|
||||||
|
cleanup
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue