#!/bin/bash if [ $UID -ne 0 ]; then echo "Ejecute 'sudo $0'" exit fi source /etc/nodemecu.conf rm /etc/nodemecu.conf rm /usr/bin/nodemecu crontab -u root -r rm -rf $directorio_instalacion systemctl stop nodemecu.service systemctl disable nodemecu.service rm /lib/systemd/system/nodemecu.service systemctl daemon-reload