File: timezone

package info (click to toggle)
base-config 2.53.10.3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,072 kB
  • ctags: 36
  • sloc: sh: 1,755; makefile: 101; perl: 48
file content (19 lines) | stat: -rwxr-xr-x 544 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -e
# Use tzsetup because it's just like tzconfig but has a debconf UI
# (Also, it can ask about whether the hardware clock is GMT..)
. /usr/share/debconf/confmodule

if [ "$1" = new ]; then
	db_get debian-installer/country || true
	tzsetup -N -y -g -U -c "$RET"

	# Work around timezone date problem as described in #246993
	if grep "^UTC=no" /etc/default/rcS >/dev/null; then
		touch /etc/modules.conf
		if [ -f /lib/modules/`uname -r`/modules.dep ]; then
			touch /lib/modules/`uname -r`/modules.dep
		fi
	fi
else
	tzsetup -y -g
fi