summaryrefslogtreecommitdiffstats
path: root/gdm/pre-install
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.servegame.org>2011-07-23 00:25:03 +0200
committerpiernov <piernov@piernov.servegame.org>2011-07-23 00:25:03 +0200
commit457ba45f1f7d291d5881f18786b6a876573a8320 (patch)
tree0cb3caa3241b510b8a377f683aaa559342424471 /gdm/pre-install
downloadgnome3-457ba45f1f7d291d5881f18786b6a876573a8320.tar.gz
gnome3-457ba45f1f7d291d5881f18786b6a876573a8320.tar.bz2
gnome3-457ba45f1f7d291d5881f18786b6a876573a8320.tar.xz
gnome3-457ba45f1f7d291d5881f18786b6a876573a8320.zip
Création du dépôt
Diffstat (limited to 'gdm/pre-install')
-rwxr-xr-xgdm/pre-install15
1 files changed, 15 insertions, 0 deletions
diff --git a/gdm/pre-install b/gdm/pre-install
new file mode 100755
index 0000000..ad04647
--- /dev/null
+++ b/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
+