logo

widrop

[mirror] WiDrop distribution, now defunct
commit: b9b2b1205e97279d03b7cde8c0d2c2a81f76ceba
parent 4151c852e271a644d6a4f129fa40ced0c4326145
Author: Mathieu Goessens <geb@breizh-entropy.org>
Date:   Mon, 22 Jul 2013 19:44:33 +0200

use /etc/default/hostapd for hostapd

Diffstat:

Asrc/pkg/widrop-hostapd/DEBIAN/hostapd4++++
Asrc/pkg/widrop-hostapd/DEBIAN/postinst18++++++++++++++++++
Asrc/pkg/widrop-hostapd/DEBIAN/postrm9+++++++++
3 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/src/pkg/widrop-hostapd/DEBIAN/hostapd b/src/pkg/widrop-hostapd/DEBIAN/hostapd @@ -0,0 +1,4 @@ +# BEGIN WIDROP +# DO NOT REMOVE THE BEGIN & END LINE +DAEMON_CONF="/etc/hostapd.conf" +# END WIDROP diff --git a/src/pkg/widrop-hostapd/DEBIAN/postinst b/src/pkg/widrop-hostapd/DEBIAN/postinst @@ -0,0 +1,18 @@ +#!/bin/sh + +case $1 in + + "configure") + echo activating hostapd + if grep WIDROP /etc/default/hostapd > /dev/null; then + echo + echo + echo + exit 0 + fi + cat hostapd >> /etc/default/hostapd + + ;; +esac + +exit 0 diff --git a/src/pkg/widrop-hostapd/DEBIAN/postrm b/src/pkg/widrop-hostapd/DEBIAN/postrm @@ -0,0 +1,9 @@ +#!/bin/sh + +case $1 in + "remove") + sed -i '/# BEGIN WIDROP/,/# END WIDROP/s/\(.*\)\|\\n//' /etc/default/hostapd + ;; +esac + +exit 0