make hosted able to use rtl871xdrv or other drivers
there are devices that are not supported as nl80211 … this change makes possible to specify `--driver rtl871xdrv` when/if needed
This commit is contained in:
parent
94bbf1d030
commit
ba9ffebcad
@ -121,6 +121,7 @@ WPA_VERSION=1+2
|
|||||||
ETC_HOSTS=0
|
ETC_HOSTS=0
|
||||||
HIDDEN=0
|
HIDDEN=0
|
||||||
SHARE_METHOD=nat
|
SHARE_METHOD=nat
|
||||||
|
DRIVER=nl80211
|
||||||
|
|
||||||
CONFDIR=
|
CONFDIR=
|
||||||
VWIFI_IFACE=
|
VWIFI_IFACE=
|
||||||
@ -218,6 +219,11 @@ while :; do
|
|||||||
SHARE_METHOD="$1"
|
SHARE_METHOD="$1"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--driver)
|
||||||
|
shift
|
||||||
|
DRIVER="$1"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
--)
|
--)
|
||||||
shift
|
shift
|
||||||
break
|
break
|
||||||
@ -333,7 +339,7 @@ networkmanager_add_unmanaged ${VWIFI_IFACE}
|
|||||||
cat << EOF > $CONFDIR/hostapd.conf
|
cat << EOF > $CONFDIR/hostapd.conf
|
||||||
ssid=${SSID}
|
ssid=${SSID}
|
||||||
interface=${VWIFI_IFACE}
|
interface=${VWIFI_IFACE}
|
||||||
driver=nl80211
|
driver=${DRIVER}
|
||||||
hw_mode=g
|
hw_mode=g
|
||||||
channel=${CHANNEL}
|
channel=${CHANNEL}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user