From 514ef808fa31d6612e28d29a67540bd7ad69b3d3 Mon Sep 17 00:00:00 2001 From: RaspbianProyect by HP3ICC Date: Tue, 21 Feb 2023 17:41:19 +0000 Subject: [PATCH] Update install.sh --- install.sh | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index dd7e255..b36c926 100644 --- a/install.sh +++ b/install.sh @@ -8,7 +8,25 @@ EMQ-VER: 22 EOF #################### 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 ######################################################################################################################