mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-13 20:49:30 -05:00
output
This commit is contained in:
parent
d6977becba
commit
2b5b06b602
@ -5,9 +5,22 @@
|
||||
|
||||
shopt -s nullglob
|
||||
|
||||
counter=0
|
||||
for filename in /boot/System.map-* ; do
|
||||
counter=$(( counter + 1 ))
|
||||
done
|
||||
|
||||
if [ "$counter" -ge "1" ]; then
|
||||
echo "Deleting system.map files..."
|
||||
fi
|
||||
|
||||
## Removes the System.map files as they are only used for debugging or malware.
|
||||
for filename in /boot/System.map-* ; do
|
||||
if [ -f "${filename}" ]; then
|
||||
rm --verbose --force "${filename}"
|
||||
fi
|
||||
done
|
||||
|
||||
if [ "$counter" -ge "1" ]; then
|
||||
echo "Success."
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user