rename function

This commit is contained in:
Matheson Steplock 2022-02-05 05:11:13 +00:00 committed by GitHub
parent 3e94856524
commit c47924e9f3

View file

@ -20,7 +20,7 @@ function undo_divert () {
--divert /etc/network/interfaces.real /etc/network/interfaces --divert /etc/network/interfaces.real /etc/network/interfaces
} }
function cleanup () { function reset_debconf_selections () {
info "Resetting debconf selections" info "Resetting debconf selections"
echo PURGE | debconf-communicate homeassistant-supervised >/dev/null echo PURGE | debconf-communicate homeassistant-supervised >/dev/null
} }
@ -29,6 +29,6 @@ case "$1" in
remove|abort-install|disappear) remove|abort-install|disappear)
info Undo divert on "$@" info Undo divert on "$@"
undo_divert undo_divert
cleanup reset_debconf_selections
;; ;;
esac esac