Files
tuya-cloudcutter/scripts/post-flash.sh-example
sillyfrog ca40fd0d2f Optional Helper scripts (#356)
* Helper script support

---------

Co-authored-by: Sillyfrog <sillyfrog@users.noreply.github.com>
2023-04-15 08:21:13 -05:00

13 lines
490 B
Bash

#!/usr/bin/env bash
# This runs after the device has been flashed
# This example connects to the new AP it creates, and configures the device using
# the configure-downlight.py script
# It then restores and restarts the network services, used on Ubuntu 20.04
python3 scripts/configure-downlight.py
sudo cp -ra /root/system-connections/ /etc/NetworkManager/
sudo systemctl restart NetworkManager
sudo systemctl enable systemd-resolved.service
sudo systemctl start systemd-resolved.service