Debian Codegraph @

debian/hostapd.postinst

raw
1 #!/bin/sh
2
3 set -e
4
5 : ${DPKG_ROOT=}
6
7 #DEBHELPER#
8
9 if [ -d /run/systemd/system ] && command -v systemctl >/dev/null && [ "$1" = configure ] && [ -z "$DPKG_ROOT" ]
10 then
11 DAEMON_CONF=
12 . /etc/default/hostapd
13 if [ -z "$DAEMON_CONF" ] && [ ! -r /etc/hostapd/hostapd.conf ] && ! systemctl --quiet is-active hostapd.service
14 then
15 systemctl mask hostapd.service
16 fi
17 fi
18
19 exit 0