mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-15 10:17:08 -05:00
27 lines
581 B
Bash
Executable File
27 lines
581 B
Bash
Executable File
#!/bin/bash
|
|
|
|
## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP <adrelanos@riseup.net>
|
|
## See the file COPYING for copying conditions.
|
|
|
|
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 "Done. Success."
|
|
fi
|