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
6if [ -n "$3" -a "$3" -lt "21" ]
7then
8  # before mnc.
9  cat <<eof
10ctrl_interface=wlan0
11eof
12fi
13
14cat <<eof
15update_config=1
16device_name=$1
17model_name=$2
18serial_number=
19device_type=10-0050F204-5
20eof
21