This file is indexed.

config is in synce-serial 0.11-5.3.

This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.

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
#!/bin/sh

set -e

. /usr/share/debconf/confmodule

THIS_PACKAGE=synce-kde

if ! [ -e /etc/synce ]; then
  mkdir /etc/synce
fi

if [ -e /etc/synce/interface ]; then
  CURRENT_DEFAULT=`cat /etc/synce/interface`
  db_set synce-serial/tty "$CURRENT_DEFAULT"
fi

if [ -e /etc/synce/localip ]; then
  CURRENT_DEFAULT=`cat /etc/synce/localip`
  db_set synce-serial/localip "$CURRENT_DEFAULT"
fi

if [ -e /etc/synce/remoteip ]; then
  CURRENT_DEFAULT=`cat /etc/synce/remoteip`
  db_set synce-serial/remoteip "$CURRENT_DEFAULT"
fi

if [ -e /etc/synce/dnsip ]; then
  CURRENT_DEFAULT=`cat /etc/synce/dnsip`
  db_set synce-serial/dnsip "$CURRENT_DEFAULT"
fi


db_input high synce-serial/tty || true
db_input high synce-serial/localip || true
db_input high synce-serial/remoteip || true
db_input high synce-serial/dnsip || true
db_go

NOTCONFIGURED=

NEW_TTY=
if db_get synce-serial/tty; then
  NEW_TTY="$RET"
  echo $NEW_TTY > /etc/synce/interface
else
  NOTCONFIGURED=yes
fi

NEW_LOCALIP=
if db_get synce-serial/localip; then
  NEW_LOCALIP="$RET"
  echo $NEW_LOCALIP > /etc/synce/localip
else
  NOTCONFIGURED=yes
fi

NEW_REMOTEIP=
if db_get synce-serial/remoteip; then
  NEW_REMOTEIP="$RET"
  echo $NEW_REMOTEIP > /etc/synce/remoteip
else
  NOTCONFIGURED=yes
fi

NEW_DNSIP=
if db_get synce-serial/dnsip; then
  NEW_DNSIP="$RET"
  echo $NEW_DNSIP > /etc/synce/dnsip
else
  if [ -e /etc/synce/dnsip ]; then
    rm /etc/synce/dnsip
  fi
fi

if [ -n "$NOTCONFIGURED" ]; then
  echo "Please run dpkg --reconfigure synce-serial to configure synce-serial."
  echo "Please run dpkg --reconfigure synce-serial to configure synce-serial." > /etc/synce/NOTCONFIGURED  
else
  if [ -e /etc/synce/NOTCONFIGURED ]; then
    rm /etc/synce/NOTCONFIGURED
  fi  
fi