config (568B)
- #!/bin/sh
- set -e
- . /usr/share/debconf/confmodule
- random_ssid=$(head -c 3 /dev/urandom |hexdump -e '"%x"')
- db_set ssid "Widrop_$random_ssid"
- db_input high ssid || true
- db_go || true
- while [ -z $random_chan ] || [ $random_chan -lt 1 ] || [ $random_chan -gt 11 ]; do
- random_chan=$( expr $(dd if=/dev/urandom count=1 2> /dev/null | cksum | cut -f1 -d" ") % 11 + 1 )
- db_set channel $random_chan
- db_input high channel || true
- db_go || true
- db_get channel || true
- random_chan=$RET;
- done
- db_set interface "wlan0"
- db_input high interface || true
- db_go || true
- exit 0