[pkg-wpa-devel] [wpa] 05/06: Mask hostapd.service on the first install.

Andrew Shadura andrewsh at debian.org
Sun Nov 26 23:45:47 UTC 2017


This is an automated email from the git hooks/post-receive script.

andrewsh pushed a commit to branch debian/master
in repository wpa.

commit c819a54d3d66e03736fbe48aed954ea04b9487f9
Author: Andrew Shadura <andrew.shadura at collabora.co.uk>
Date:   Sun Nov 26 18:23:01 2017 +0000

    Mask hostapd.service on the first install.
---
 debian/hostapd.postinst | 11 +++++++++++
 debian/hostapd.postrm   | 11 +++++++++++
 2 files changed, 22 insertions(+)

diff --git a/debian/hostapd.postinst b/debian/hostapd.postinst
new file mode 100755
index 0000000..9dbb625
--- /dev/null
+++ b/debian/hostapd.postinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+if [ -x /bin/systemctl ] && [ "$1" = configure ] && [ -z "$2" ]
+then
+	systemctl mask hostapd.service
+fi
+
+#DEBHELPER#
+exit 0
diff --git a/debian/hostapd.postrm b/debian/hostapd.postrm
new file mode 100755
index 0000000..3deaee9
--- /dev/null
+++ b/debian/hostapd.postrm
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+if [ -x /bin/systemctl ] && [ "$1" = purge ]
+then
+	systemctl unmask hostapd.service
+fi
+
+#DEBHELPER#
+exit 0

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/wpa.git



More information about the Pkg-wpa-devel mailing list