Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
|
- #!/bin/bash
-
- if [ "$(id -u)" -eq 0 ]
- then
- service log2zram stop
- systemctl disable log2zram
- rm /etc/systemd/system/log2zram.service
- rm /usr/local/bin/log2zram/log2zram
- rm /etc/log2zram.conf
- rm /etc/cron.hourly/log2zram
- rm /etc/logrotate.d/log2zram
- sudo sed -i '/olddir.*/d' /etc/logrotate.conf
- if [ -d /var/hdd.log ]; then
- rm -r /var/hdd.log
- fi
- echo "Log2Zram is uninstalled, removing the uninstaller in progress"
- rm -rf /usr/local/bin/log2ram
- echo "##### Reboot isn't needed #####"
- else
- echo "You need to be ROOT (sudo can be used)"
- fi
|