diff --git a/on-boot-script/README-MANUALmd b/on-boot-script/README-MANUALmd index 548012c..6e2b8e3 100644 --- a/on-boot-script/README-MANUALmd +++ b/on-boot-script/README-MANUALmd @@ -1,7 +1,7 @@ * NB! THESE WILL NOT PERSIST THROUGH FIRMWARE. They still work however ### Automated Setup -1. Copy [install.sh](install.sh) to your UDM and execute it +1. Copy [install.sh](manual-install/install.sh) to your UDM and execute it 1. Copy any shell scripts you want to run to /mnt/data/on_boot.d and make sure they are executable and have the correct shebang (#!/bin/sh) Examples: * Start a DNS Container [10-dns.sh](../dns-common/on_boot.d/10-dns.sh) diff --git a/on-boot-script/README.md b/on-boot-script/README.md index 4fff1e0..52c4fc4 100644 --- a/on-boot-script/README.md +++ b/on-boot-script/README.md @@ -20,17 +20,25 @@ rm /etc/systemd/system/udmboot.service * Built on Ubuntu-20.04 on Windows 10/WSL2 ## Steps -1. Get into the unifios shell on your udm +1. Copy on_boot.sh and make on_boot.d and add scripts to on_boot.d + ```shell script + mkdir -p /mnt/data/on_boot.d + vi /mnt/data/on_boot.sh + chmod u+x /mnt/data/on_boot.sh + ``` + Example: [on_boot.sh](examples/udm-files/on_boot.sh) + +2. Get into the unifios shell on your udm ```shell script unifi-os shell ``` -2. Download the [udm-boot_1.0.0-1_all.deb](packages/udm-boot_1.0.0-1_all.deb) and install it and go back to the UDM +3. Download the [udm-boot_1.0.0-1_all.deb](packages/udm-boot_1.0.0-1_all.deb) and install it and go back to the UDM ```shell script curl -L https://raw.githubusercontent.com/boostchicken/udm-utilities/master/on-boot-script/packages/udm-boot_1.0.0-1_all.deb -o udm-boot_1.0.0-1_all.deb dpkg -i udm-boot_1.0.0-1_all.deb exit ``` -3. Copy any shell scripts you want to run to /mnt/data/on_boot.d and make sure they are executable and have the correct shebang (#!/bin/sh) +4. Copy any shell scripts you want to run to /mnt/data/on_boot.d and make sure they are executable and have the correct shebang (#!/bin/sh) Examples: * Start a DNS Container [10-dns.sh](../dns-common/on_boot.d/10-dns.sh) * Start wpa_supplicant [on_boot.d/10-wpa_supplicant.sh](examples/udm-files/on_boot.d/10-start-containers.sh) diff --git a/on-boot-script/install-unifios.sh b/on-boot-script/manual-install/install-unifios.sh similarity index 100% rename from on-boot-script/install-unifios.sh rename to on-boot-script/manual-install/install-unifios.sh diff --git a/on-boot-script/install.sh b/on-boot-script/manual-install/install.sh similarity index 100% rename from on-boot-script/install.sh rename to on-boot-script/manual-install/install.sh