CLI setup script for kankun wifi plugs
Connects through SSH to the plug, configures it to be on the wifi network specified, copies any files in the setup folder, restarts the plug and then runs the install.sh file.
- You need Node and npm installed
- Clone this repo
- Run
npm installinside the repo
- Add any files you want copied to the plug into the
setupfolder. - Edit
setup/install.shwith any commands you want to run on the first reboot. - Connect to the Kankun plug's wifi access point. This should be
0K_SP3 - Run the script using
node index.jsand answer the prompts or usingnode index.js --ssid=<<network ssid>> --key=<<network key>>to skip the prompts