File: gom.postinst

package info (click to toggle)
gom 0.30.2-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 852 kB
  • ctags: 325
  • sloc: ansic: 3,021; sh: 1,548; makefile: 74
file content (21 lines) | stat: -rw-r--r-- 533 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh -e
. /usr/share/debconf/confmodule

# Version <= 0.29.103-6 used this file, not /etc/default/gom. We just delete that silently.
no_auto_init_old=/etc/gom/NO_AUTO_INIT
if [ -e ${no_auto_init_old} ]; then
	rm -f ${no_auto_init_old}
fi

CONFFILE="/etc/default/gom"
db_get gom/auto_init || true
auto_init="${RET}"
db_get gom/valid_sound_devices || true
valid_sound_devices="${RET}"
cat <<EOF >${CONFFILE}
# Generated by postinst on `date`.
auto_init="${auto_init}"
valid_sound_devices="${valid_sound_devices}"
EOF

#DEBHELPER#