aboutsummaryrefslogtreecommitdiff
path: root/tools/XBMCLive/live-initramfs/bin/live-preseed
blob: d98c4f36fc49e0885470ce7ec1f7a706f53b7477 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

set -e

PATH=/usr/sbin:/usr/bin:/sbin:/bin

root="${1}"
question="${2}"
value="${3}"
seen="${4}"

[ "${seen}" ] || seen=true

if ! (echo "SET ${question} ${value}"; echo "FSET ${question} seen ${seen}") | chroot "${1}" /usr/bin/debconf-communicate -fnoninteractive live-initramfs >/dev/null
then

chroot "${1}" /usr/bin/debconf-communicate -fnoninteractive live-initramfs >/dev/null << EOF
REGISTER debian-installer/dummy ${question}
SET ${question} ${value}
FSET ${question} seen ${seen}
EOF

fi

exit 0