~ubuntu-branches/ubuntu/precise/xdm/precise

« back to all changes in this revision

Viewing changes to debian/local/Xstartup

  • Committer: Bazaar Package Importer
  • Author(s): Artur Rona
  • Date: 2011-01-30 00:53:09 UTC
  • mfrom: (9.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20110130005309-30mjjyk7div7d494
Tags: 1:1.1.10-3ubuntu1
* Merge from debian unstable.  Remaining changes: (LP: #682196)
  - debian/{rules, xdm.install, local/ubuntu*}:
    + Add Ubuntu graphics and configure xdm to use them by default.
  - debian/patches/ubuntu_no_whiteglass.diff: Don't hardcode
    the default Xcursor theme to whiteglass. Use the Ubuntu
    default x-cursor-theme instead.
* debian/patches/ftbfs_binutils-gold.diff: Fix FTBFS with binutils-gold
  and ld --as-needed. (Closes: #556694)
* Dropped changes, no longer applicable:
  - debian/{xdm.postinst.in, xdm.postrm.in, xdm.preinst.in}

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
#
3
 
# $Id: Xstartup 189 2005-06-11 00:04:27Z branden $
4
 
#
5
3
# This script is run as root after the user logs in.  If this script exits with
6
4
# a return code other than 0, the user's session will not be started.
7
5
 
8
 
PATH="$PATH:/usr/bin/X11"
9
 
 
10
6
if [ -e /etc/nologin ]; then
11
7
  # always display the nologin message, if possible
12
8
  if [ -s /etc/nologin ] && which xmessage > /dev/null 2>&1; then
13
9
    xmessage -file /etc/nologin -geometry 640x480
14
10
  fi
15
 
  if [ "$(id -u)" != "0" ] && \
 
11
  if [ "$(id -u $USER)" != "0" ] && \
16
12
     ! grep -qs '^ignore-nologin' /etc/X11/xdm/xdm.options; then
17
13
    exit 1
18
14
  fi