~ubuntu-branches/ubuntu/utopic/xdm/utopic

« back to all changes in this revision

Viewing changes to debian/xsfbs/xsfbs.sh

  • Committer: Bazaar Package Importer
  • Author(s): Julien Cristau
  • Date: 2007-01-22 09:27:20 UTC
  • Revision ID: james.westby@ubuntu.com-20070122092720-q1l25sgh3aorl03j
Tags: 1:1.0.5-2
* On initial install, don't check if xdm is already running, because
  start-stop-daemon in d-i always returns true (closes: #407342). Thanks to
  Joey Hess for the report.
* Add myself to Uploaders, and remove Fabio and Branden with their
  permission.  They're welcome back whenever they have more time!

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: xsfbs.sh 2295 2006-06-09 02:34:26Z dnusinow $
 
1
# $Id: xsfbs.sh 2888 2006-08-22 03:04:13Z dnusinow $
2
2
 
3
3
# This is the X Strike Force shell library for X Window System package
4
4
# maintainer scripts.  It serves to define shell functions commonly used by
57
57
  exit $SHELL_LIB_USAGE_ERROR
58
58
fi
59
59
 
 
60
ARCHITECTURE="$(dpkg --print-installation-architecture)"
 
61
 
 
62
LAPTOP=""
 
63
if [ -n "$(which laptop-detect)" ]; then
 
64
    if laptop-detect >/dev/null; then
 
65
        LAPTOP=true
 
66
    fi
 
67
fi
 
68
 
 
69
if [ "$1" = "reconfigure" ] || [ -n "$DEBCONF_RECONFIGURE" ]; then
 
70
  RECONFIGURE="true"
 
71
else
 
72
  RECONFIGURE=
 
73
fi
 
74
 
 
75
if ([ "$1" = "install" ] || [ "$1" = "configure" ]) && [ -z "$2" ]; then
 
76
  FIRSTINST="yes"
 
77
fi
 
78
 
 
79
if [ -z "$RECONFIGURE" ] && [ -z "$FIRSTINST" ]; then
 
80
  UPGRADE="yes"
 
81
fi
 
82
 
60
83
trap "message;\
61
84
      message \"Received signal.  Aborting $THIS_PACKAGE package $THIS_SCRIPT script.\";\
62
85
      message;\