4 getent group gdm >/dev/null 2>&1 || groupadd -g 120 gdm
5 getent passwd gdm >/dev/null 2>&1 || usr/sbin/useradd -c 'Gnome Display Manager' -u 120 -g gdm -d /var/lib/gdm -s /sbin/nologin gdm
6 passwd -l gdm > /dev/null
7 chown root:gdm /var/lib/gdm > /dev/null
8 chmod 1770 /var/lib/gdm > /dev/null
10 gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
14 if [ -f opt/gnome/etc/gdm/custom.conf ]; then
16 sed -e 's|/opt/gnome/libexec|usr/lib/gdm|g' \
17 -e 's|/opt/gnome/etc|/etc|g' \
18 -e 's|/opt/gnome/|/usr/|g' \
19 opt/gnome/etc/gdm/custom.conf > etc/gdm/custom.conf
20 mv opt/gnome/etc/gdm/custom.conf opt/gnome/etc/gdm/custom.conf.pacsave
29 gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
30 getent passwd gdm || userdel gdm
31 getent group gdm || groupdel gdm