Ticket #2586: GDM

File GDM, 723 bytes (added by danchr@…, 20 years ago)

The StartupItem script, goes into files

Line 
1#!/bin/sh
2
3##
4# Startup the GNOME Display Manager
5##
6
7. /etc/rc.common
8
9
10StartService ()
11{
12    local SafeBoot=""
13    local reply=$(ConsoleMessage -q SafeBoot)
14    if [ "${reply:=-NO-}" = "-YES-" ]; then
15        SafeBoot="-x"
16    fi
17
18    export XDG_DATA_DIRS=__PREFIX__/share
19
20    if [ "${DISPLAYSERVER:=-QUARTZ-}" = "-X11-" ] &&
21        [ "${SafeBoot:=-NO-}" = "-NO-" ]; then
22        __PREFIX__/bin/gdm
23    fi
24}
25
26StopService ()
27{
28    if [ "${DISPLAYSERVER:=-QUARTZ-}" = "-X11-" ]; then
29        __PREFIX__/sbin/gdm-stop
30    fi
31}
32
33RestartService () {
34    if [ "${DISPLAYSERVER:=-QUARTZ-}" = "-X11-" ] &&
35        [ "${SafeBoot:=-NO-}" = "-NO-" ]; then
36        export XDG_DATA_DIRS=__PREFIX__/share
37        __PREFIX__/sbin/gdm-restart
38    fi
39}
40
41
42RunService "$1"