summaryrefslogtreecommitdiff
path: root/package/x11r7/xapp_xdm/xapp_xdm.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/x11r7/xapp_xdm/xapp_xdm.mk')
-rw-r--r--package/x11r7/xapp_xdm/xapp_xdm.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/x11r7/xapp_xdm/xapp_xdm.mk b/package/x11r7/xapp_xdm/xapp_xdm.mk
index ce3850331..7268d5d38 100644
--- a/package/x11r7/xapp_xdm/xapp_xdm.mk
+++ b/package/x11r7/xapp_xdm/xapp_xdm.mk
@@ -12,4 +12,11 @@ XAPP_XDM_DEPENDENCIES = xapp_xinit xapp_sessreg xapp_xrdb xlib_libX11 xlib_libXa
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 -D 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))