Home | History | Annotate | Download | only in config
      1 #!/bin/bash
      2 #
      3 # Generates wpa_supplicant.conf file for wifi
      4 # Usage: generate_wpa_supplicant_conf.sh <device name> <model name> <SDK API level>
      5 
      6 if [ -n "$3" -a "$3" -lt "21" ]
      7 then
      8   # before mnc.
      9   cat <<eof
     10 ctrl_interface=wlan0
     11 eof
     12 fi
     13 
     14 cat <<eof
     15 update_config=1
     16 device_name=$1
     17 model_name=$2
     18 serial_number=
     19 device_type=10-0050F204-5
     20 eof
     21