Update remove-system.map

This commit is contained in:
madaidan 2019-06-26 15:03:54 +00:00 committed by GitHub
parent 8ef0db17e6
commit 9392c8deb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,14 @@
#!/bin/bash
## Copyright (C) 2012 - 2018 ENCRYPTED SUPPORT LP <adrelanos@riseup.net>
## See the file COPYING for copying conditions.
shopt -s nullglob
# Removes the System.map files as they are only used for debugging or malware.
for file in /boot/System.map-*
for filename in /boot/System.map-*
do
if [ -f "${file}" ]; then
rm "${file}"
if [ -f "${filename}" ]; then
rm -f "${filename}"
fi
done