summaryrefslogtreecommitdiffstats
path: root/extra/gdm/pre-install
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-29 13:56:26 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-29 13:56:26 +0200
commit7e219ae1c6b9ca5bc0f015c2b48be6d3694b4f67 (patch)
treef38e8d6a2c3a9f00ab290c5c92814d4e5aca961f /extra/gdm/pre-install
parentea69f9be755410c3725718636ef0f75d0fc632d2 (diff)
downloadnutyx-extra-7e219ae1c6b9ca5bc0f015c2b48be6d3694b4f67.tar.gz
nutyx-extra-7e219ae1c6b9ca5bc0f015c2b48be6d3694b4f67.tar.bz2
nutyx-extra-7e219ae1c6b9ca5bc0f015c2b48be6d3694b4f67.tar.xz
nutyx-extra-7e219ae1c6b9ca5bc0f015c2b48be6d3694b4f67.zip
Ajout de gdm#2.20.10-1
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
+