mirror of
https://github.com/outbackdingo/firmware.git
synced 2026-01-27 18:18:57 +00:00
Reworking the network configuration (#466)
This commit is contained in:
@@ -2351,9 +2351,9 @@ CONFIG_ISO9660_FS=y
|
||||
#
|
||||
# DOS/FAT/NT Filesystems
|
||||
#
|
||||
CONFIG_FAT_FS=y
|
||||
CONFIG_MSDOS_FS=y
|
||||
CONFIG_VFAT_FS=y
|
||||
CONFIG_FAT_FS=m
|
||||
# CONFIG_MSDOS_FS is not set
|
||||
CONFIG_VFAT_FS=m
|
||||
CONFIG_FAT_DEFAULT_CODEPAGE=437
|
||||
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
|
||||
# CONFIG_FAT_DEFAULT_UTF8 is not set
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
# Interfaces
|
||||
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
@@ -6,12 +5,9 @@ iface lo inet loopback
|
||||
auto eth0
|
||||
iface eth0 inet dhcp
|
||||
hwaddress ether $(fw_printenv -n ethaddr || echo 00:24:B8:FF:FF:FF)
|
||||
#udhcpc_opts -O search -O ntpsrv -O hostname
|
||||
#pre-up echo -e "nameserver 77.88.8.8\nnameserver 8.8.4.4\n" >/tmp/resolv.conf
|
||||
|
||||
manual eth0:1
|
||||
iface eth0:1 inet static
|
||||
address $(fw_printenv -n ipaddr || echo 192.168.1.10)
|
||||
netmask 255.255.255.0
|
||||
#pre-up echo -e "server 0.time.openipc.org iburst\nserver 1.time.openipc.org iburst\nserver 2.time.openipc.org iburst\nserver 3.time.openipc.org iburst" >/tmp/ntp.conf
|
||||
|
||||
manual wlan0
|
||||
iface wlan0 inet dhcp
|
||||
@@ -22,40 +18,12 @@ iface wlan0 inet dhcp
|
||||
pre-up modprobe mt7601u
|
||||
pre-up wpa_passphrase "SSID" "password" >/tmp/wpa_supplicant.conf
|
||||
pre-up sed -i '2i \\tscan_ssid=1' /tmp/wpa_supplicant.conf
|
||||
pre-up (sleep 3; wpa_supplicant -B -D nl80211 -i wlan0 -c/tmp/wpa_supplicant.conf)
|
||||
pre-up sleep 3
|
||||
pre-up wpa_supplicant -B -D nl80211 -i wlan0 -c/tmp/wpa_supplicant.conf
|
||||
post-down killall -q wpa_supplicant
|
||||
post-down echo 1 > /sys/class/gpio/gpio7/value
|
||||
post-down echo 7 > /sys/class/gpio/unexport
|
||||
|
||||
manual eth2
|
||||
iface eth2 inet dhcp
|
||||
pre-up wifi xm711
|
||||
pre-up wpa_passphrase "SSID" "password" >/tmp/wpa_supplicant.conf
|
||||
pre-up sed -i '2i \\tscan_ssid=1' /tmp/wpa_supplicant.conf
|
||||
pre-up (sleep 3; wpa_supplicant -B -D nl80211 -i eth2 -c/tmp/wpa_supplicant.conf)
|
||||
post-down killall -q wpa_supplicant
|
||||
|
||||
manual usb0
|
||||
iface usb0 inet dhcp
|
||||
pre-up echo 9 > /sys/class/gpio/export
|
||||
pre-up echo out > /sys/class/gpio/gpio9/direction
|
||||
pre-up echo 0 > /sys/class/gpio/gpio9/value
|
||||
pre-up modprobe usbserial vendor=0x2c7c product=0x6026
|
||||
pre-up modprobe rndis_host
|
||||
pre-up sleep 10
|
||||
post-down echo 1 > /sys/class/gpio/gpio9/value
|
||||
post-down echo 9 > /sys/class/gpio/unexport
|
||||
|
||||
manual ppp0
|
||||
iface ppp0 inet manual
|
||||
pre-up echo 61 > /sys/class/gpio/export
|
||||
pre-up echo out > /sys/class/gpio/gpio61/direction
|
||||
pre-up echo 0 > /sys/class/gpio/gpio61/value
|
||||
pre-up (sleep 7; pon)
|
||||
post-down poff
|
||||
post-down echo 1 > /sys/class/gpio/gpio61/value
|
||||
post-down echo 61 > /sys/class/gpio/unexport
|
||||
|
||||
manual wg0
|
||||
iface wg0 inet static
|
||||
address 192.168.99.1
|
||||
@@ -64,3 +32,6 @@ iface wg0 inet static
|
||||
pre-up ip link add dev wg0 type wireguard
|
||||
pre-up wg setconf wg0 /etc/wireguard.conf
|
||||
post-down ip link del dev wg0
|
||||
|
||||
source-dir /etc/network/interfaces.d
|
||||
|
||||
|
||||
5
general/overlay/etc/network/interfaces.d/eth0:1
Normal file
5
general/overlay/etc/network/interfaces.d/eth0:1
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
manual eth0:1
|
||||
iface eth0:1 inet static
|
||||
address $(fw_printenv -n ipaddr || echo 192.168.1.10)
|
||||
netmask 255.255.255.0
|
||||
8
general/overlay/etc/network/interfaces.d/eth2
Normal file
8
general/overlay/etc/network/interfaces.d/eth2
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
manual eth2
|
||||
iface eth2 inet dhcp
|
||||
pre-up wifi xm711
|
||||
pre-up wpa_passphrase "SSID" "password" >/tmp/wpa_supplicant.conf
|
||||
pre-up sed -i '2i \\tscan_ssid=1' /tmp/wpa_supplicant.conf
|
||||
pre-up (sleep 3; wpa_supplicant -B -D nl80211 -i eth2 -c/tmp/wpa_supplicant.conf)
|
||||
post-down killall -q wpa_supplicant
|
||||
9
general/overlay/etc/network/interfaces.d/ppp0
Normal file
9
general/overlay/etc/network/interfaces.d/ppp0
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
manual ppp0
|
||||
iface ppp0 inet ppp
|
||||
pre-up echo 61 > /sys/class/gpio/export
|
||||
pre-up echo out > /sys/class/gpio/gpio61/direction
|
||||
pre-up echo 0 > /sys/class/gpio/gpio61/value
|
||||
pre-up sleep 7
|
||||
post-down echo 1 > /sys/class/gpio/gpio61/value
|
||||
post-down echo 61 > /sys/class/gpio/unexport
|
||||
11
general/overlay/etc/network/interfaces.d/usb0
Normal file
11
general/overlay/etc/network/interfaces.d/usb0
Normal file
@@ -0,0 +1,11 @@
|
||||
|
||||
manual usb0
|
||||
iface usb0 inet dhcp
|
||||
pre-up echo 9 > /sys/class/gpio/export
|
||||
pre-up echo out > /sys/class/gpio/gpio9/direction
|
||||
pre-up echo 0 > /sys/class/gpio/gpio9/value
|
||||
pre-up modprobe usbserial vendor=0x2c7c product=0x6026
|
||||
pre-up modprobe rndis_host
|
||||
pre-up sleep 10
|
||||
post-down echo 1 > /sys/class/gpio/gpio9/value
|
||||
post-down echo 9 > /sys/class/gpio/unexport
|
||||
1
general/overlay/root/.ssh
Symbolic link
1
general/overlay/root/.ssh
Symbolic link
@@ -0,0 +1 @@
|
||||
/etc/dropbear
|
||||
Reference in New Issue
Block a user