diff --git a/on-boot-script/README.md b/on-boot-script/README.md index d0a000a8..35398b06 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 ca9abb35..b7f9a5b3 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 00214866..b6ef7f25 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]