Uninstaller for ld-updr
This commit is contained in:
parent
681d4620c5
commit
7ad681fdd5
27
uninstall.sh
Executable file
27
uninstall.sh
Executable file
|
@ -0,0 +1,27 @@
|
|||
#!/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
|
||||
echo "* Removing /etc/cron.d/lf-updr"
|
||||
rm -rf /etc/cron.d/lf-updr
|
||||
echo "* Done"
|
Loading…
Reference in New Issue
Block a user