bastelprojekte:menuconfig
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
| bastelprojekte:menuconfig [2020/05/06 05:07] – angelegt und code blutsauger | bastelprojekte:menuconfig [2020/06/17 00:02] (aktuell) – blutsauger | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | Ein Script, das die Konfiguration eines Routers per ssh erlaubt, und die ganzen uci Kommandos in einem Text-GUI verpackt. Ähnlich dem Web-Konfigurator - der ist aber nur verfügbar, wenn man direkt am Gerät sitzt. | + | Ein Script, das die Konfiguration eines Routers per ssh erlaubt, und die ganzen uci Kommandos in einem Text-GUI verpackt. Ähnlich dem Web-Konfigurator - letzterer |
| Man muss sich auf seinem lokalem Linux-Rechner das Paket ' | Man muss sich auf seinem lokalem Linux-Rechner das Paket ' | ||
| - | ./ | + | ./ |
| + | |||
| + | {{: | ||
| + | |||
| + | Ich werde das Script von Zeit zu Zeit hier im Wiki aktualisieren. | ||
| + | Letzter Stand 2020-06-17 (oder in der History nachsehen). | ||
| < | < | ||
| Zeile 94: | Zeile 100: | ||
| # As long as we cannot run this script locally on a FF node, it is | # As long as we cannot run this script locally on a FF node, it is | ||
| # necessary to exchange data via ssh. | # necessary to exchange data via ssh. | ||
| - | # Give the IPV6 address | + | # Give the IPV6 address |
| # These variables are initialized in the main entry point | # These variables are initialized in the main entry point | ||
| # at the very bottom of this file. | # at the very bottom of this file. | ||
| Zeile 122: | Zeile 128: | ||
| # -x: no X11 redirection | # -x: no X11 redirection | ||
| ssh -x -l root $g_node_ip " | ssh -x -l root $g_node_ip " | ||
| - | if [ $? != 0 ]; then | + | |
| + | RESULT=$? | ||
| + | | ||
| echo "Error in: $@" 1>&2 | echo "Error in: $@" 1>&2 | ||
| fi | fi | ||
| + | return $RESULT | ||
| } | } | ||
| Zeile 264: | Zeile 273: | ||
| # If key is not found, assume ' | # If key is not found, assume ' | ||
| + | |||
| ff_sshcmd uci get network.mesh_lan.disabled || echo 1 | ff_sshcmd uci get network.mesh_lan.disabled || echo 1 | ||
| else | else | ||
| Zeile 534: | Zeile 544: | ||
| # Set new value. | # Set new value. | ||
| - | | + | |
| + | ff_sshcmde uci commit button-bind | ||
| fi | fi | ||
| } | } | ||
| Zeile 546: | Zeile 557: | ||
| # g_xxx for global variables | # g_xxx for global variables | ||
| - | echo " | + | |
| + | | ||
| + | echo " | ||
| + | echo "They happen, when certain features of a router are missing." | ||
| + | echo "This will take a while." | ||
| + | echo " | ||
| g_hostname=`ff_pretty_hostname` | g_hostname=`ff_pretty_hostname` | ||
| Zeile 860: | Zeile 876: | ||
| Mesh WAN disabled: | Mesh WAN disabled: | ||
| Mesh LAN disabled: | Mesh LAN disabled: | ||
| + | Ch Update preserve: | ||
| --radio0-- | --radio0-- | ||
| hwmode: | hwmode: | ||
| channel: | channel: | ||
| - | Ch Update preserve: | ||
| Mesh disabled: | Mesh disabled: | ||
| Client disabled: | Client disabled: | ||
| Zeile 1169: | Zeile 1185: | ||
| Do NOT connect a client PC on that port.\n\ | Do NOT connect a client PC on that port.\n\ | ||
| Instead, connect another FF router with mesh enabled on that port.\n\n\ | Instead, connect another FF router with mesh enabled on that port.\n\n\ | ||
| - | This connection is faster | + | This connection is faster, since only one router has to do VPN \ |
| - | into the regular PC port (LAN, yellow).\n\n\ | + | encryption. Or use an Offloader.\n\n\ |
| Default is OFF, and meshing only happens over WLAN.\n\n\ | Default is OFF, and meshing only happens over WLAN.\n\n\ | ||
| Routers with only one single port: probably one must try\n\ | Routers with only one single port: probably one must try\n\ | ||
| - | LAN or WAN to find the right interface.\n\ | + | LAN or WAN to find the right interface.\n\n\ |
| - | Mesh VPN: enable this, to allow user clients | + | Mesh VPN: allow the router |
| - | Usually you want this enabled. Except the router is only used to\n\ | + | with other routers via WiFi. Usually you want this enabled." |
| - | forward packets without allowing user client connections." 20 70 | + | |
| # No break here, go back to start of while loop | # No break here, go back to start of while loop | ||
| ;; | ;; | ||
| Zeile 1210: | Zeile 1225: | ||
| elif [ " | elif [ " | ||
| echo " | echo " | ||
| + | echo " | ||
| + | echo "There must be at least one WiFi interface available." | ||
| + | echo -n "Press ENTER..." | ||
| read x | read x | ||
| return | return | ||
| Zeile 1219: | Zeile 1237: | ||
| elif [ " | elif [ " | ||
| echo " | echo " | ||
| + | echo " | ||
| + | echo "There must be at least one WiFi interface available." | ||
| + | echo -n "Press ENTER..." | ||
| read x | read x | ||
| return | return | ||
bastelprojekte/menuconfig.1588741640.txt.gz · Zuletzt geändert: von blutsauger
