mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-06-19 16:24:09 -04:00
quotes
This commit is contained in:
parent
8bcf7e3c23
commit
d0daf75db3
1 changed files with 2 additions and 2 deletions
|
@ -14,14 +14,14 @@ cmdline=$(cat /proc/cmdline)
|
||||||
kernel=$(echo "$cmdline" | grep -o 'BOOT_IMAGE=\S*' | cut -d '=' -f 2)
|
kernel=$(echo "$cmdline" | grep -o 'BOOT_IMAGE=\S*' | cut -d '=' -f 2)
|
||||||
initrd=$(echo "$kernel" | sed "s#vmlinuz#initrd.img#")
|
initrd=$(echo "$kernel" | sed "s#vmlinuz#initrd.img#")
|
||||||
|
|
||||||
if test -e $initrd; then
|
if test -e "$initrd"; then
|
||||||
echo "$0: INFO: Initrd File Found"
|
echo "$0: INFO: Initrd File Found"
|
||||||
else
|
else
|
||||||
echo "$0: ERROR: Initrd File NOT FOUND"
|
echo "$0: ERROR: Initrd File NOT FOUND"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -e $kernel; then
|
if test -e "$kernel"; then
|
||||||
echo "$0: INFO: Kernel File Found"
|
echo "$0: INFO: Kernel File Found"
|
||||||
else
|
else
|
||||||
echo "$0: ERROR: Kernel File NOT FOUND"
|
echo "$0: ERROR: Kernel File NOT FOUND"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue