File: postinst

package info (click to toggle)
autolog 0.40-11
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 228 kB
  • ctags: 101
  • sloc: ansic: 833; sh: 87; makefile: 56
file content (37 lines) | stat: -rw-r--r-- 730 bytes parent folder | download | duplicates (3)
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
#!/bin/sh
PATH=/bin:/usr/bin:/usr/sbin

if [ -e /usr/share/debconf/confmodule ]; then
  . /usr/share/debconf/confmodule
fi

#DEBHELPER#

update-rc.d autolog defaults >/dev/null

if [ -e /usr/share/debconf/confmodule ]; then

	. /usr/share/debconf/confmodule

	db_get autolog/note || true

else

cat << EOF

The autolog daemon will be activated now and will log users out after
two hours of idle time. If you do not want this then either uninstall
autolog or customize /etc/autolog.conf and /etc/rc.d/autolog according
to your needs.

If you are running dselect over a modem line then this might disconnect
you when you leave things unattended.
EOF

fi

db_stop

touch /var/log/autolog.log
invoke-rc.d autolog restart 1>/dev/null