mirror of
https://github.com/tonusoo/koduinternet-cpe
synced 2025-12-17 23:45:13 +02:00
Initial commit
This commit is contained in:
8
conf/etc/systemd/system/dnsmasq.service.d/override.conf
Normal file
8
conf/etc/systemd/system/dnsmasq.service.d/override.conf
Normal 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
|
||||
10
conf/etc/systemd/system/hostapd.service.d/override.conf
Normal file
10
conf/etc/systemd/system/hostapd.service.d/override.conf
Normal 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
|
||||
@@ -0,0 +1,3 @@
|
||||
[Unit]
|
||||
PartOf=networking.service
|
||||
After=networking.service
|
||||
11
conf/etc/systemd/system/isp-switch.service
Normal file
11
conf/etc/systemd/system/isp-switch.service
Normal 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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user