🧹 cleanup offline installation from files

This commit is contained in:
Vladislav Nepogodin committed 2023-03-03 21:59:13 +04:00
1 parent 80c4d938bf
commit b3b67aeb49
1 file changed
+11 -14
+11 -14
View File
@@ -1,20 +1,16 @@
#!/bin/bash #!/bin/bash
#set -e #set -e
###############################################################################
# Author : Erik Dubois
# Website : https://www.erikdubois.be
# Website : https://www.arcolinux.info
# Website : https://www.arcolinux.com
# Website : https://www.arcolinuxd.com
# Website : https://www.arcolinuxb.com
# Website : https://www.arcolinuxiso.com
# Website : https://www.arcolinuxforum.com
###############################################################################
#
# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. RUN AT YOUR OWN RISK.
#
###############################################################################
_clean_files() {
local _files_to_remove=(
/etc/modprobe.d/nvidia-utils.conf
/etc/modules-load.d/nvidia-utils.conf
)
local xx
for xx in "${_files_to_remove[@]}"; do rm -f "$xx" || true; done
}
# taken from Erik Dubois script
_clean_packages() { _clean_packages() {
local _packages_to_remove=( local _packages_to_remove=(
gparted gparted
@@ -45,3 +41,4 @@ _clean_packages() {
} }
_clean_packages _clean_packages
_clean_files