File: postinst

package info (click to toggle)
screen 4.0.2-4.1sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,932 kB
  • ctags: 2,169
  • sloc: ansic: 35,262; sh: 1,704; makefile: 351; perl: 63; sed: 5
file content (25 lines) | stat: -rw-r--r-- 607 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
22
23
24
25
#!/bin/sh
set -e

# gotta source this b/c the package uses debconf and we don't want lintian to
# whine about it...
. /usr/share/debconf/confmodule

case "$1" in
  configure) ;;
  abort-upgrade|abort-deconfigure|abort-remove) exit 0 ;;
  *)
    echo "ERROR: screen postinst called with unknown argument \"$1\"."
    echo "Aborting configuration of screen package."
    exit 1 ;;
esac

# /var/run/screens was used in previous releases and is now depricated
if [ -d /var/run/screens ] ; then
    rm -rf /var/run/screens
fi

# add screen to /etc/shells
/usr/sbin/add-shell /usr/bin/screen || true

#DEBHELPER#