From: aduskett at gmail.com <aduskett@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v6 5/6] package/polkit: add init service file
Date: Fri, 6 Dec 2019 15:46:48 -0800 [thread overview]
Message-ID: <20191206234649.3972927-5-aduskett@gmail.com> (raw)
In-Reply-To: <20191206234649.3972927-1-aduskett@gmail.com>
From: Adam Duskett <Aduskett@gmail.com>
Add a S50polkit file which starts polkit for non-systemd based systems.
Signed-off-by: Adam Duskett <Aduskett@gmail.com>
---
Changes v1 -> v5:
- Use start-stop-daemon in the init file. (Thomas)
- Reorder this patch in the series.
package/polkit/S50polkit | 15 +++++++++++++++
package/polkit/polkit.mk | 5 +++++
2 files changed, 20 insertions(+)
create mode 100644 package/polkit/S50polkit
diff --git a/package/polkit/S50polkit b/package/polkit/S50polkit
new file mode 100644
index 0000000000..55c10e99ae
--- /dev/null
+++ b/package/polkit/S50polkit
@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# start polkitd
+#
+
+case "$1" in
+ start)
+ start-stop-daemon -q -S -x /usr/lib/polkit-1/polkitd -- --no-debug &
+ ;;
+ *)
+ echo "Usage: $0 {start}"
+ exit 1
+esac
+
+exit $?
diff --git a/package/polkit/polkit.mk b/package/polkit/polkit.mk
index b440cd2f1c..8bb4512aee 100644
--- a/package/polkit/polkit.mk
+++ b/package/polkit/polkit.mk
@@ -44,4 +44,9 @@ define POLKIT_INSTALL_INIT_SYSTEMD
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/polkit.service
endef
+define POLKIT_INSTALL_INIT_SYSV
+ $(INSTALL) -D -m 0755 package/polkit/S50polkit \
+ $(TARGET_DIR)/etc/init.d/S50polkit
+endef
+
$(eval $(autotools-package))
--
2.23.0
next prev parent reply other threads:[~2019-12-06 23:46 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-06 23:46 [Buildroot] [PATCH v6 1/6] package/polkit: bump to version 0.116 aduskett at gmail.com
2019-12-06 23:46 ` [Buildroot] [PATCH v6 2/6] package/polkit: support different authentication frameworks aduskett at gmail.com
2019-12-08 15:02 ` Thomas Petazzoni
2019-12-06 23:46 ` [Buildroot] [PATCH v6 3/6] package/polkit: add systemd service file aduskett at gmail.com
2019-12-08 15:04 ` Thomas Petazzoni
2019-12-08 18:46 ` Adam Duskett
2019-12-08 19:57 ` Thomas Petazzoni
2019-12-08 21:31 ` Adam Duskett
2019-12-08 21:32 ` Adam Duskett
2019-12-06 23:46 ` [Buildroot] [PATCH v6 4/6] support/testing: add polkit systemd test aduskett at gmail.com
2019-12-08 15:07 ` Thomas Petazzoni
2019-12-06 23:46 ` aduskett at gmail.com [this message]
2019-12-08 15:08 ` [Buildroot] [PATCH v6 5/6] package/polkit: add init service file Thomas Petazzoni
2020-02-09 21:28 ` Carlos Santos
2019-12-06 23:46 ` [Buildroot] [PATCH v6 6/6] support/testing: add polkit initd test aduskett at gmail.com
2019-12-08 15:02 ` [Buildroot] [PATCH v6 1/6] package/polkit: bump to version 0.116 Thomas Petazzoni
2019-12-08 19:04 ` Adam Duskett
2019-12-08 19:58 ` Thomas Petazzoni
2019-12-09 19:03 ` Adam Duskett
2019-12-14 21:04 ` Thomas Petazzoni
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=20191206234649.3972927-5-aduskett@gmail.com \
--to=aduskett@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.