summaryrefslogtreecommitdiffstats
path: root/gdm/pre-install
blob: ad04647a351fe4731d0dbe2d4de3204e7698e023 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

if [ -z "`grep '^gdm:' /etc/group`" ]
then
  /usr/sbin/groupadd -g 42 gdm
fi

if [ -z "`grep '^gdm:' /etc/passwd`" ]
then
  /usr/sbin/useradd  -u 42 -g gdm -d /var/gdm -s /bin/false gdm
  /bin/passwd -l gdm
fi

# End of file