logo

widrop

[mirror] WiDrop distribution, now defunct git clone https://hacktivis.me/git/mirror/widrop.git

postinst (332B)


  1. #!/bin/sh
  2. hostapd=$(cat <<EOF
  3. # BEGIN WIDROP
  4. # DO NOT REMOVE THE BEGIN & END LINE
  5. DAEMON_CONF="/etc/hostapd.conf"
  6. # END WIDROP
  7. EOF
  8. )
  9. case $1 in
  10. "configure")
  11. echo activating hostapd
  12. if grep WIDROP /etc/default/hostapd > /dev/null; then
  13. echo
  14. echo
  15. echo
  16. exit 0
  17. fi
  18. echo $hostapd >> /etc/default/hostapd
  19. ;;
  20. esac
  21. exit 0