mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
Fixing install steps
This commit is contained in:
parent
ee9f0f9187
commit
3044d507e1
@ -1,7 +1,7 @@
|
|||||||
* NB! THESE WILL NOT PERSIST THROUGH FIRMWARE. They still work however
|
* NB! THESE WILL NOT PERSIST THROUGH FIRMWARE. They still work however
|
||||||
### Automated Setup
|
### 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)
|
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:
|
Examples:
|
||||||
* Start a DNS Container [10-dns.sh](../dns-common/on_boot.d/10-dns.sh)
|
* Start a DNS Container [10-dns.sh](../dns-common/on_boot.d/10-dns.sh)
|
||||||
|
@ -20,17 +20,25 @@ rm /etc/systemd/system/udmboot.service
|
|||||||
* Built on Ubuntu-20.04 on Windows 10/WSL2
|
* Built on Ubuntu-20.04 on Windows 10/WSL2
|
||||||
|
|
||||||
## Steps
|
## 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
|
```shell script
|
||||||
unifi-os shell
|
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
|
```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
|
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
|
dpkg -i udm-boot_1.0.0-1_all.deb
|
||||||
exit
|
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:
|
Examples:
|
||||||
* Start a DNS Container [10-dns.sh](../dns-common/on_boot.d/10-dns.sh)
|
* 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)
|
* Start wpa_supplicant [on_boot.d/10-wpa_supplicant.sh](examples/udm-files/on_boot.d/10-start-containers.sh)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user