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