Update install.sh

This commit is contained in:
RaspbianProyect by HP3ICC 2023-02-21 17:41:19 +00:00
parent fd0c2b7d1f
commit 514ef808fa
1 changed files with 19 additions and 1 deletions

View File

@ -8,7 +8,25 @@ EMQ-VER: 22
EOF EOF
#################### ####################
sudo timedatectl set-timezone America/Panama sudo timedatectl set-timezone America/Panama
####################################################################################
# swap raspberry
####################################################################################
if [ "$(cat /proc/cpuinfo | grep 'Raspberry')" != "" ]; then
sudo systemctl stop dphys-swapfile.service
sudo systemctl disable dphys-swapfile.service
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
sudo sed -i 's/CONF_SWAPSIZE=.*/CONF_SWAPSIZE=0/' /etc/dphys-swapfile
fi
#
sudo systemctl stop rsyslog
sudo systemctl disable rsyslog
rm /var/log/syslog*
rm /var/log/*.log*
###################################################################################################################### ######################################################################################################################
# Cronedit # Cronedit
###################################################################################################################### ######################################################################################################################