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