WIP of mesh
This commit is contained in:
1 parent
327f4e40da
commit
6d490c91a5
2 files changed
+7
-7
No files matched your search
@@ -1,4 +1,4 @@
|
||||
#!/bin/ash
|
||||
#!/bin/bash
|
||||
# Turn an OpenWrt dumb access point into a Wi-fi mesh point
|
||||
|
||||
# ######################
|
||||
@@ -47,15 +47,15 @@ uci delete wireless.default_radio1
|
||||
|
||||
# create the mesh Wifi
|
||||
uci set wireless.wifinet0=wifi-iface
|
||||
uci set wireless.wifinet0.device=$MESH_RADIO
|
||||
uci set wireless.wifinet0.device="$MESH_RADIO"
|
||||
uci set wireless.wifinet0.mode='mesh'
|
||||
uci set wireless.wifinet0.encryption='sae'
|
||||
uci set wireless.wifinet0.mesh_id=$MESH_NAME
|
||||
uci set wireless.wifinet0.mesh_id="$MESH_NAME"
|
||||
uci set wireless.wifinet0.mesh_fwding='1'
|
||||
uci set wireless.wifinet0.mesh_rssi_threshold='0'
|
||||
uci set wireless.wifinet0.key=$MESH_PWD
|
||||
uci set wireless.wifinet0.key="$MESH_PWD"
|
||||
uci set wireless.wifinet0.network='lan'
|
||||
uci set "wireless.$MESH_RADIO.channel"=$MESH_CHANNEL
|
||||
uci set "wireless.$MESH_RADIO.channel=$MESH_CHANNEL"
|
||||
uci delete "wireless.$MESH_RADIO.disabled"
|
||||
|
||||
# create the AP Wifi
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
MESH_PWD=$(echo $MESH_PWD | tr -d '"')
|
||||
WIFI_PWD=$(echo $WIFI_PWD | tr -d '"')
|
||||
MESH_PWD=$(echo "$MESH_PWD" | tr -d '"')
|
||||
WIFI_PWD=$(echo "$WIFI_PWD" | tr -d '"')
|
||||
output_file=${1:-"/etc/config/wireless"}
|
||||
|
||||
echo "writing to $output_file"
|
||||
|
||||
Reference in new issue
Block a user