From d2ce07e227ec95370e8aee5f1199edc6ad61aff9 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Tue, 9 Jun 2015 16:19:51 -0500 Subject: Add rc-sstat script The rc-sstat script is written to display status of s6 services and run rc-status to display all services status. This currently only works on Linux. --- scripts/Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'scripts/Makefile') diff --git a/scripts/Makefile b/scripts/Makefile index 3d41631e..9a66c65d 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -1,5 +1,19 @@ +MK= ../mk +include ${MK}/os.mk + DIR= ${LIBEXECDIR}/bin BIN= on_ac_power +INSTALLAFTER = _installafter + +ifeq (${OS},Linux) +SRCS+= rc-sstat.in +BIN+= rc-sstat +endif + +_installafter: +ifeq (${OS},Linux) + ${INSTALL} -d ${DESTDIR}${SBINDIR} + ln -s ${DIR}/rc-sstat ${DESTDIR}/${SBINDIR}/rc-sstat +endif -MK= ../mk include ${MK}/scripts.mk -- cgit v1.2.3