mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-07-04 20:36:45 -04:00
Update remove-system.map
This commit is contained in:
parent
8ef0db17e6
commit
9392c8deb2
1 changed files with 8 additions and 3 deletions
|
@ -1,9 +1,14 @@
|
||||||
#!/bin/bash
|
#!/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.
|
# 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
|
do
|
||||||
if [ -f "${file}" ]; then
|
if [ -f "${filename}" ]; then
|
||||||
rm "${file}"
|
rm -f "${filename}"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue