X-Git-Url: https://sipb.mit.edu/gitweb.cgi/snippets/.git/blobdiff_plain/6d930f304655c3467cbd52f1c3b595f1fbdc3e33..36b8f5a7528476345b176c10164170c13743037c:/apt-zephyr/apt-zephyr diff --git a/apt-zephyr/apt-zephyr b/apt-zephyr/apt-zephyr index 7db23c5..fdf1318 100755 --- a/apt-zephyr/apt-zephyr +++ b/apt-zephyr/apt-zephyr @@ -102,4 +102,18 @@ pre_install_pkgs () esac } -pre_install_pkgs +post_invoke () +{ + echo 'Done.' | send_zephyr +} + +if [ "$1" = "--pre-install-pkgs" ]; then + pre_install_pkgs +elif [ "$1" = "--post-invoke" ]; then + post_invoke +else + echo "usage: $0 {--pre-install-pkgs | --post-invoke}" >&2 + echo "(Hint: you probably need to update /etc/apt/apt.conf.d/90zephyr.)" >&2 +fi + +exit 0