From 4fb047fa650c1f26fda6ecc7a0fd750434767c32 Mon Sep 17 00:00:00 2001 From: exodious Date: Sun, 21 Jun 2020 05:16:55 -0400 Subject: [PATCH 1/2] Fixes boostchicken/udm-utilities#8 (#9) --- on-boot-script/README.md | 2 +- on-boot-script/examples/unifi-os-files/udmboot.service | 2 +- on-boot-script/install-unifios.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/on-boot-script/README.md b/on-boot-script/README.md index d0a000a..35398b0 100644 --- a/on-boot-script/README.md +++ b/on-boot-script/README.md @@ -50,9 +50,9 @@ Example: examples/unifi-os-files/udmboot.service ``` echo "[Unit] Description=Run On Startup UDM +After=network.target [Service] -After=network.target ExecStart=/etc/init.d/udm.sh [Install] diff --git a/on-boot-script/examples/unifi-os-files/udmboot.service b/on-boot-script/examples/unifi-os-files/udmboot.service index ca9abb3..b7f9a5b 100644 --- a/on-boot-script/examples/unifi-os-files/udmboot.service +++ b/on-boot-script/examples/unifi-os-files/udmboot.service @@ -1,8 +1,8 @@ [Unit] Description=Run On Startup UDM +After=network.target [Service] -After=network.target ExecStart=/etc/init.d/udm.sh [Install] diff --git a/on-boot-script/install-unifios.sh b/on-boot-script/install-unifios.sh index 0021486..b6ef7f2 100644 --- a/on-boot-script/install-unifios.sh +++ b/on-boot-script/install-unifios.sh @@ -5,9 +5,9 @@ chmod u+x /etc/init.d/udm.sh echo "[Unit] Description=Run On Startup UDM +After=network.target [Service] -After=network.target ExecStart=/etc/init.d/udm.sh [Install] From 7dc204056ee6a01fe3c370dcfc1dc35c745bee4a Mon Sep 17 00:00:00 2001 From: Josh Peizer <4177684+jpeizer@users.noreply.github.com> Date: Sat, 27 Jun 2020 04:24:41 -0400 Subject: [PATCH 2/2] Update on_boot.sh (#11) The docker creation points to adguardhome and is case sensitive. So either changing the docker example or this line will allow the script to launch adguard on boot successfully. --- AdguardHome/udm-files/on_boot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AdguardHome/udm-files/on_boot.sh b/AdguardHome/udm-files/on_boot.sh index 10b8537..79aeb64 100644 --- a/AdguardHome/udm-files/on_boot.sh +++ b/AdguardHome/udm-files/on_boot.sh @@ -16,7 +16,7 @@ ip link set br5.mac up ip route add 10.0.5.3/32 dev br5.mac #Remove the # on the line below when Docker container is deployed. -#podman start AdguardHome +#podman start adguardhome # Uncomment and adjust these rules if you want to use DNAT to force DNS to this container. # iptables -t nat -C PREROUTING -i br0 -p udp ! --source 10.0.5.3 ! --destination 10.0.5.3 --dport 53 -j DNAT --to 10.0.5.3 || iptables -t nat -A PREROUTING -i br0 -p udp ! --source 10.0.5.3 ! --destination 10.0.5.3 --dport 53 -j DNAT --to 10.0.5.3