1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
set -e
. /usr/share/debconf/confmodule
if [ "$1" = "prepare" ]; then
db_input high ubiquity/use_nonfree || true
db_get ubiquity/use_nonfree
if [ "$RET" = "true" ]; then
env -u DEBIAN_HAS_FRONTEND -u DEBCONF_REDIR \
DEBCONF_DB_REPLACE=configdb DEBCONF_DB_OVERRIDE="Pipe{infd:none outfd:none}" \
ubuntu-drivers autoinstall --package-list /run/ubuntu-drivers.autoinstall || \
logger -t ubiquity "ubuntu-drivers autoinstall failed with code: $?"
fi
elif [ "$1" = "wireless" ]; then
db_get ubiquity/online
if [ "$RET" != true ]; then
db_input high ubiquity/ssid || true
fi
fi
|