X-Git-Url: https://git.ao2.it/kinect-audio-setup.git/blobdiff_plain/d12c99394cb86bbf9c0657a596a4a26fe2b1c16d..f4b9017cca7feaf514fb2fd71c8de9fdbf87996c:/debian/postinst diff --git a/debian/postinst b/debian/postinst index 41a946a..e145f60 100644 --- a/debian/postinst +++ b/debian/postinst @@ -4,11 +4,19 @@ # see: dh_installdeb(1) set -e + +. /usr/share/debconf/confmodule case "$1" in configure) - kinect_fetch_fw /lib/firmware/kinect /usr/sbin/kinect_upload_fw || true - udevadm control --reload-rules || true + db_get kinect-audio-setup/accept_eula + if [ "$RET" = "false" ]; then + db_input high kinect-audio-setup/eula_not_accepted || true + db_go + else + kinect_fetch_fw /lib/firmware/kinect + udevadm control --reload-rules || true + fi ;; abort-upgrade|abort-remove|abort-deconfigure)