summaryrefslogtreecommitdiff
path: root/x11/gdm2/pkg-req
blob: 22dd46c6f7adc760306f6110c2b81ff04cd3e229 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
if [ "$2" != "INSTALL" ]; then
  exit 0
fi
if ! id -u gdm > /dev/null 2>&1; then
  echo "You need an account \"gdm\" to install this package."
  echo "Please add it by hand (try \"man vipw\") and try again."
  echo ""
  echo "An example passwd entry is:"
  echo "gdm:*:91:91::0:0:GNOME Display Manager:/nonexistent:/nonexistent"
  echo ""
  exit 1
fi
if ! grep -s ^gdm: /etc/group > /dev/null 2>&1; then
  echo "You need a group \"gdm\" to install this package."
  echo "Please add it by hand and try again."
  echo "An example /etc/group entry is:"
  echo "gdm:*:91:gdm"
  echo ""
  exit 1
fi
exit 0