logo

widrop

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

config (568B)


  1. #!/bin/sh
  2. set -e
  3. . /usr/share/debconf/confmodule
  4. random_ssid=$(head -c 3 /dev/urandom |hexdump -e '"%x"')
  5. db_set ssid "Widrop_$random_ssid"
  6. db_input high ssid || true
  7. db_go || true
  8. while [ -z $random_chan ] || [ $random_chan -lt 1 ] || [ $random_chan -gt 11 ]; do
  9. random_chan=$( expr $(dd if=/dev/urandom count=1 2> /dev/null | cksum | cut -f1 -d" ") % 11 + 1 )
  10. db_set channel $random_chan
  11. db_input high channel || true
  12. db_go || true
  13. db_get channel || true
  14. random_chan=$RET;
  15. done
  16. db_set interface "wlan0"
  17. db_input high interface || true
  18. db_go || true
  19. exit 0