#!/bin/sh
if [ -r ./conf ]; then
	. ./conf
	: ${OPTS:= -c ${CONF_FILE:-/etc/wpa_supplicant/wpa_supplicant.conf} ${WPA_INTERFACE:+-i ${WPA_INTERFACE}} ${DRIVER:+-D ${DRIVER}} -s}

else
	. ./auto
	OPTS="${AUTO} -s"
fi

exec 2>&1
exec wpa_supplicant ${OPTS}
