mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update install.sh
This commit is contained in:
parent
fd0c2b7d1f
commit
514ef808fa
20
install.sh
20
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
|
||||
######################################################################################################################
|
||||
|
|
|
|||
Loading…
Reference in New Issue