mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-12-23 01:13:40 +07:00
quotes
This commit is contained in:
parent
8bcf7e3c23
commit
d0daf75db3
@ -14,14 +14,14 @@ cmdline=$(cat /proc/cmdline)
|
||||
kernel=$(echo "$cmdline" | grep -o 'BOOT_IMAGE=\S*' | cut -d '=' -f 2)
|
||||
initrd=$(echo "$kernel" | sed "s#vmlinuz#initrd.img#")
|
||||
|
||||
if test -e $initrd; then
|
||||
if test -e "$initrd"; then
|
||||
echo "$0: INFO: Initrd File Found"
|
||||
else
|
||||
echo "$0: ERROR: Initrd File NOT FOUND"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if test -e $kernel; then
|
||||
if test -e "$kernel"; then
|
||||
echo "$0: INFO: Kernel File Found"
|
||||
else
|
||||
echo "$0: ERROR: Kernel File NOT FOUND"
|
||||
|
Loading…
Reference in New Issue
Block a user