mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-07-14 01:42:01 +07:00
output
This commit is contained in:
@ -5,9 +5,22 @@
|
|||||||
|
|
||||||
shopt -s nullglob
|
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.
|
## Removes the System.map files as they are only used for debugging or malware.
|
||||||
for filename in /boot/System.map-* ; do
|
for filename in /boot/System.map-* ; do
|
||||||
if [ -f "${filename}" ]; then
|
if [ -f "${filename}" ]; then
|
||||||
rm --verbose --force "${filename}"
|
rm --verbose --force "${filename}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ "$counter" -ge "1" ]; then
|
||||||
|
echo "Success."
|
||||||
|
fi
|
||||||
|
Reference in New Issue
Block a user