1
0
mirror of https://github.com/tonusoo/koduinternet-cpe synced 2025-12-17 23:45:13 +02:00

Initial commit

This commit is contained in:
Martin Tonusoo
2023-06-15 17:55:10 +03:00
commit bf4aa50b38
69 changed files with 3095 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
[Unit]
# As the dnsmasq is configured("bind-interfaces" in /etc/dnsmasq.conf) to
# run strictly on br0 interface and this interface is removed and then
# recreate during the networking restart, then ensure that networking.service
# restarts are propagated to dnsmasq.service so that the dnsmasq will
# bind to new br0.
PartOf=networking.service
After=networking.service

View File

@@ -0,0 +1,10 @@
[Unit]
# Hostapd adds the WNIC to bridge br0. As the restart of networking service
# removes and recreates the br0 interface, then ensure that networking.service
# restarts are propagated to hostapd.service so the hostapd will insert the
# WNIC to new br0 bridge.
PartOf=networking.service
After=networking.service
[Service]
ExecStartPost=/sbin/bridge link set dev wlan0 hairpin on

View File

@@ -0,0 +1,3 @@
[Unit]
PartOf=networking.service
After=networking.service

View File

@@ -0,0 +1,11 @@
[Unit]
Description=Switches v4 connectivity to mobile broadband backup
After=network.target
[Service]
Type=simple
Restart=always
ExecStart=/usr/local/sbin/isp-switch
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,6 @@
[Unit]
# Start dnsmasq, igmpproxy and hostapd services when
# the networking service is started. dnsmasq, igmpproxy
# and hostapd services are started once the networking
# service has been started.
Wants=dnsmasq.service igmpproxy.service hostapd.service