Update emq-TE1x.sh

This commit is contained in:
RaspbianProyect by HP3ICC 2023-02-21 17:44:27 +00:00
parent 514ef808fa
commit e3ab748686
1 changed files with 7 additions and 14 deletions

View File

@ -313,29 +313,22 @@ sudo systemctl daemon-reload
sudo systemctl stop rsyslog
sudo systemctl disable rsyslog
sudo systemctl disable netcheck.service
sudo systemctl disable systemd-networkd-wait-online.service
sudo systemctl disable dphys-swapfile-back.service
mv /lib/systemd/system/dphys-swapfile.service /lib/systemd/system/dphys-swapfile-back.service
rm /var/log/syslog*
rm /var/log/*.log*
cd /tmp/
#####
sudo update-rc.d dphys-swapfile remove
sudo chmod -x /etc/init.d/dphys-swapfile
sudo dphys-swapfile swapoff
sudo swapoff -a
sudo rm /var/swap
sudo dphys-swapfile uninstall
cd /etc/
sudo sed -i 's/CONF_SWAPSIZE=100/CONF_SWAPSIZE=0/' dphys-swapfile
##
history -c && history -w