From c1a9f71b39646b532d7ff26001d31fbe0de417ad Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 8 Sep 2019 22:10:28 +0200 Subject: [PATCH] build: Add script to start iwd.service via systemd-run --- tools/run-iwd.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 tools/run-iwd.sh diff --git a/tools/run-iwd.sh b/tools/run-iwd.sh new file mode 100755 index 00000000..caab4677 --- /dev/null +++ b/tools/run-iwd.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +systemd-run \ + --pty --wait --collect \ + --unit=iwd.service \ + --service-type=dbus \ + --property=BusName=net.connman.iwd \ + --property=NotifyAccess=main \ + --property=LimitNPROC=1 \ + --property=Restart=on-failure \ + --property=PrivateTmp=true \ + --property=NoNewPrivileges=true \ + --property=DevicePolicy=closed \ + --property=DeviceAllow=/dev/rfkill\ rw \ + --property=ProtectHome=yes \ + --property=ProtectSystem=strict \ + --property=ProtectControlGroups=yes \ + --property=ProtectKernelModules=yes \ + --property=StateDirectory=iwd \ + --property=ConfigurationDirectory=iwd \ + ./src/iwd $*