summaryrefslogtreecommitdiffstats
path: root/extra/gdm/pre-install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gdm/pre-install')
-rwxr-xr-xextra/gdm/pre-install15
1 files changed, 15 insertions, 0 deletions
diff --git a/extra/gdm/pre-install b/extra/gdm/pre-install
new file mode 100755
index 000000000..ad04647a3
--- /dev/null
+++ b/extra/gdm/pre-install
@@ -0,0 +1,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
+