/lib/live/debconfig/0060-util-linux is in live-debconfig 4.0~alpha31-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | #!/bin/sh
## live-debconfig(7) - System Configuration Components
## Copyright (C) 2006-2013 Daniel Baumann <mail@daniel-baumann.ch>
##
## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
## This is free software, and you are welcome to redistribute it
## under certain conditions; see COPYING for details.
set -e
DEBCONF_SYSTEMRC="/var/lib/live/debconfig/systemrc"
export DEBCONF_SYSTEMRC
. /usr/share/debconf/confmodule
Defaults ()
{
if [ -z "${_HWCLOCKACCESS}" ]
then
if [ -e /etc/default/hwclock ]
then
. /etc/default/hwclock
_HWCLOCKACCESS="${_HWCLOCKACCESS:-${HWCLOCKACCESS}}"
fi
_HWCLOCKACCESS="${_HWCLOCKACCESS:-yes}"
fi
}
# /etc/default/hwclock is supported as of util-linux version 2.20.1-5
_UTIL_LINUX_VERSION="$(dpkg -l util-linux | awk '/^ii/ { print $3 }')"
if dpkg --compare-versions "${_UTIL_LINUX_VERSION}" lt 2.20.1-5~
then
exit 0
fi
db_get live-debconfig/util-linux/hwclockaccess
_HWCLOCKACCESS="${RET}" # boolean
Defaults
db_set live-debconfig/util-linux/hwclockaccess "${_HWCLOCKACCESS}"
db_fset live-debconfig/util-linux/hwclockaccess seen false
db_settitle live-debconfig/title
db_input high live-debconfig/util-linux/hwclockaccess || true
db_go
db_get live-debconfig/util-linux/hwclockaccess
_HWCLOCKACCESS="${RET}" # boolean
Defaults
db_stop
# translate debconf boolean into 'yes' and 'no'
# (this is better than using a select in debconf with Choices-C,
# otherwise all translators would need to translate 'yes' and 'no').
case "${_HWCLOCKACCESS}" in
true)
_HWCLOCKACCESS="yes"
;;
false)
_HWCLOCKACCESS="no"
;;
esac
if [ -e /etc/default/hwclock ]
then
# HWCLOCKACCESS is commented in /etc/default/hwclock
if [ -z "${HWCLOCKACCESS}" ]
then
# uncommenting it
sed -e "s|^# *HWCLOCKACCESS=|HWCLOCKACCESS=|" \
/etc/default/hwclock > /etc/default/hwclock.tmp
else
cp /etc/default/hwclock /etc/default/hwclock.tmp
fi
else
touch /etc/default/hwclock.tmp
fi
# Set the hwclock parameters
grep -Eq '^ *HWCLOCKACCESS=' /etc/default/hwclock.tmp || \
echo "HWCLOCKACCESS=" >> /etc/default/hwclock.tmp
sed -i -e "s|^ *HWCLOCKACCESS=.*|HWCLOCKACCESS=\"${_HWCLOCKACCESS}\"|" \
/etc/default/hwclock.tmp
mv /etc/default/hwclock.tmp /etc/default/hwclock
|