-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path0.1.4-unified_diff.patch
72 lines (69 loc) · 2.24 KB
/
0.1.4-unified_diff.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
##
## (C) 2023, Roberto A. Foglietta <roberto.foglietta@gmail.com>
## released under MIT (tlo.mit.edu) license terms
##
#\header #######################################################################
#
# target : rfos
# type : system
# provider: robang74
# services: connman -dnsmasq # minus stop and disable service when patch removal
# name : dnsmasq-connman-integration
# version : 0.1.4
#
#/header #######################################################################
---
--- /usr/lib/systemd/system/connman.service
+++ /usr/lib/systemd/system/connman.service
@@ -3,9 +3,9 @@
DefaultDependencies=false
Conflicts=shutdown.target
Requires=dbus.socket oneshot-root.service
-After=dbus.socket oneshot-root.service network-pre.target
+After=dbus.socket oneshot-root.service network-pre.target dnsmasq.target systemd-user-sessions.target
Before=network.target multi-user.target shutdown.target
-Wants=network.target
+Wants=network.target dnsmasq.target
[Service]
Type=dbus
@@ -13,7 +13,7 @@
Restart=always
EnvironmentFile=-/etc/sysconfig/connman
EnvironmentFile=-/var/lib/environment/connman/*.conf
-ExecStart=/usr/sbin/connmand -n -W nl80211 --nobacktrace --noplugin=wifi $SYSCONF_ARGS $CONNMAN_ARGS
+ExecStart=/usr/sbin/connmand -n --nodnsproxy -W nl80211 --nobacktrace --noplugin=wifi $SYSCONF_ARGS $CONNMAN_ARGS
ExecReload=/usr/bin/dbus-send --system --print-reply --type=method_call --dest=net.connman / net.connman.Firewall.Reload
StandardOutput=null
--- /usr/lib/systemd/system/dnsmasq.service
+++ /usr/lib/systemd/system/dnsmasq.service
@@ -1,6 +1,7 @@
[Unit]
Description=DNS caching server.
After=network.target
+Before=connman.target
[Service]
ExecStart=/usr/sbin/dnsmasq -k
--- /dev/null
+++ /etc/resolv.dnsmasq
@@ -0,0 +1,4 @@
+nameserver 9.9.9.9
+nameserver 94.140.14.14
+nameserver 149.112.112.112
+nameserver 94.140.15.15
--- /dev/null
+++ /etc/dnsmasq.d/01-tethering-interfaces.conf
@@ -0,0 +1,2 @@
+interface=tether
+interface=rndis0
--- /dev/null
+++ /etc/dnsmasq.d/02-extra-large-dns-cache.conf
@@ -0,0 +1 @@
+cache-size=1500
--- /dev/null
+++ /etc/dnsmasq.d/03-fast-nameservers-list.conf
@@ -0,0 +1 @@
+resolv-file=/etc/resolv.dnsmasq
--- /dev/null
+++ /etc/dnsmasq.d/04-bind-interfaces-waydroid.conf
@@ -0,0 +1 @@
+bind-dynamic