postinst (332B)
- #!/bin/sh
- hostapd=$(cat <<EOF
- # BEGIN WIDROP
- # DO NOT REMOVE THE BEGIN & END LINE
- DAEMON_CONF="/etc/hostapd.conf"
- # END WIDROP
- EOF
- )
- case $1 in
- "configure")
- echo activating hostapd
- if grep WIDROP /etc/default/hostapd > /dev/null; then
- echo
- echo
- echo
- exit 0
- fi
- echo $hostapd >> /etc/default/hostapd
- ;;
- esac
- exit 0