Commit ea77a07e authored by Seblu's avatar Seblu
Browse files

reexec: check root status

parent 6741262b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@

shopt -s nullglob

(( UID > 0 )) && { echo "You must be root" >&2; exit 1; }
type -P kexec >/dev/null || { echo "kexec is not in PATH" >&2; exit 1; }
[[ -r /boot ]] || { echo "Unable to read /boot" >&2; exit 1; }