mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
* Store install-cni-plugins.sh once * Newlines in on-boot-script * Update example on_boot.sh for directory * Update README.md examples * Store 20-dns.conflist once * Add modularized nextdns config w/IPv6 support * Make nextdns script more generic * Use common setup script for each dns service * Add missing newlines * Readme updates and ipv6 support * Readme updates and ipv6 support * Final updates and Ipv6 Co-authored-by: exodious <exodious@users.noreply.github.com>
19 lines
381 B
Bash
19 lines
381 B
Bash
#!/bin/sh
|
|
|
|
echo "#!/bin/sh
|
|
ssh -o StrictHostKeyChecking=no root@127.0.1.1 '/mnt/data/on_boot.sh'" > /etc/init.d/udm.sh
|
|
chmod u+x /etc/init.d/udm.sh
|
|
|
|
echo "[Unit]
|
|
Description=Run On Startup UDM
|
|
After=network.target
|
|
|
|
[Service]
|
|
ExecStart=/etc/init.d/udm.sh
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target" > /etc/systemd/system/udmboot.service
|
|
|
|
systemctl enable udmboot
|
|
systemctl start udmboot
|