blob: 5a7a763b1754985359656321319eb9a540260608 [file] [log] [blame] [edit]
#!/bin/sh -e
. /usr/share/debconf/confmodule
db_version 2.0
db_get libedgetpu/accepted-eula
if [ "$RET" = "true" ]; then
exit 0 # already accepted
fi
db_fset libedgetpu/accepted-eula seen false
db_input critical libedgetpu/accepted-eula
db_go || true
db_get libedgetpu/accepted-eula
if [ "$RET" = "true" ]; then
exit 0 # accepted
fi
db_input critical libedgetpu/error-eula
db_go || true
exit 1 # not accepted