Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yegor Yefremov <yegor_sub1@visionsystems.de>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/3] xdm: install startup script
Date: Wed, 07 Dec 2011 11:32:17 +0100	[thread overview]
Message-ID: <4EDF40B1.7090303@visionsystems.de> (raw)
In-Reply-To: <1318238520-16580-3-git-send-email-yegorslists@googlemail.com>

Am 10.10.2011 11:22, schrieb yegorslists at googlemail.com:
> From: Yegor Yefremov <yegorslists@googlemail.com>
> 
> install S99xdm to /etc/init.d to start XDM automatically
> 
> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
> ---
>  package/x11r7/xapp_xdm/S99xdm      |   27 +++++++++++++++++++++++++++
>  package/x11r7/xapp_xdm/xapp_xdm.mk |    6 ++++++
>  2 files changed, 33 insertions(+), 0 deletions(-)
>  create mode 100644 package/x11r7/xapp_xdm/S99xdm
> 
> diff --git a/package/x11r7/xapp_xdm/S99xdm b/package/x11r7/xapp_xdm/S99xdm
> new file mode 100644
> index 0000000..57b5d92
> --- /dev/null
> +++ b/package/x11r7/xapp_xdm/S99xdm
> @@ -0,0 +1,27 @@
> +#!/bin/sh
> +
> +XDM_BIN=/usr/bin/xdm
> +
> +case "$1" in
> +    start)
> +        echo -n "Starting XDM: "
> +        $XDM_BIN
> +        echo "done"
> +        ;;
> +    stop)
> +	echo "Stopping XDM"
> +        killall -q xdm
> +        ;;
> +    restart)
> +        /etc/init.d/S99xdm stop
> +        /etc/init.d/S99xdm start
> +        ;;
> +    *)
> +        echo "Usage: $0 {start|stop|restart}"
> +        exit 1
> +        ;;
> +esac
> +
> +
> +exit 0
> +
> diff --git a/package/x11r7/xapp_xdm/xapp_xdm.mk b/package/x11r7/xapp_xdm/xapp_xdm.mk
> index 81e2acd..d0fc2fc 100644
> --- a/package/x11r7/xapp_xdm/xapp_xdm.mk
> +++ b/package/x11r7/xapp_xdm/xapp_xdm.mk
> @@ -11,4 +11,10 @@ XAPP_XDM_CONF_ENV = ac_cv_file__dev_urandom=yes
>  XAPP_XDM_DEPENDENCIES = xapp_xinit xapp_sessreg xapp_xrdb xlib_libX11 xlib_libXaw xlib_libXdmcp xlib_libXinerama xlib_libXt xproto_xineramaproto xproto_xproto
>  XAPP_XDM_CONF_OPT = --with-utmp-file=/var/adm/utmpx --with-wtmp-file=/var/adm/wtmpx
>  
> +define XAPP_XDM_INSTALL_STARTUP_SCRIPT
> +	$(INSTALL) -m 0755 package/x11r7/xapp_xdm/S99xdm $(TARGET_DIR)/etc/init.d/S99xdm
> +endef
> +
> +XAPP_XDM_POST_INSTALL_TARGET_HOOKS += XAPP_XDM_INSTALL_STARTUP_SCRIPT
> +
>  $(eval $(call AUTOTARGETS))

ping?

  reply	other threads:[~2011-12-07 10:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-10  9:21 [Buildroot] [PATCH 1/3] fluxbox: add xsession profile yegorslists at googlemail.com
2011-10-10  9:21 ` [Buildroot] [PATCH 2/3] xdm: bump to 1.1.11 yegorslists at googlemail.com
2011-12-07 10:32   ` Yegor Yefremov
2011-12-07 20:18   ` Peter Korsgaard
2011-10-10  9:22 ` [Buildroot] [PATCH 3/3] xdm: install startup script yegorslists at googlemail.com
2011-12-07 10:32   ` Yegor Yefremov [this message]
2011-12-07 20:32   ` Peter Korsgaard
2011-12-07 10:31 ` [Buildroot] [PATCH 1/3] fluxbox: add xsession profile Yegor Yefremov
2011-12-07 20:14 ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EDF40B1.7090303@visionsystems.de \
    --to=yegor_sub1@visionsystems.de \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox