lf-updr/uninstall.sh

35 lines
934 B
Bash
Raw Normal View History

2024-10-20 13:58:27 +02:00
#!/bin/bash
################################################
# lf-updr - Linux Firmware Updater Uninstaller #
# Author: q3aql@duck.com #
# License: GPLv2.0 #
################################################
echo "** lf-updr - Linux Firmware Updater **"
echo ""
# Check if process have root permissions
mkdir -p /etc/root &> /dev/null
administrador=$?
if [ ${administrador} -eq 0 ] ; then
rm -rf /etc/root
else
echo "* Root permissions are required"
exit
fi
# Remove files
echo "* Removing /usr/bin/lf-updr"
rm -rf /usr/bin/lf-updr
2024-10-27 10:52:01 +01:00
echo "* Removing /usr/bin/lf-updr-install"
rm -rf /usr/bin/lf-updr-install
2024-10-20 13:58:27 +02:00
echo "* Removing /etc/cron.d/lf-updr"
rm -rf /etc/cron.d/lf-updr
2024-10-27 10:52:01 +01:00
echo "* Removing /usr/sbin/lf-updrd"
rm -rf /usr/sbin/lf-updrd
systemctl disable lf-updrd
echo "* Removing /etc/systemd/system/lf-updrd.service"
rm -rf /etc/systemd/system/lf-updrd.service
2024-10-20 13:58:27 +02:00
echo "* Done"