unifios-utilities/on-boot-script/install-unifios.sh

19 lines
381 B
Bash
Raw Normal View History

2020-05-31 16:35:32 +00:00
#!/bin/sh
2020-06-22 01:28:31 +00:00
2020-05-31 16:35:32 +00:00
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
2020-05-31 16:35:32 +00:00
[Service]
ExecStart=/etc/init.d/udm.sh
[Install]
WantedBy=multi-user.target" > /etc/systemd/system/udmboot.service
systemctl enable udmboot
2020-06-22 01:28:31 +00:00
systemctl start udmboot