|
@@ -36,7 +36,7 @@ function checkDep() {
|
36
|
|
36
|
|
37
|
#--@F active module from UEFI
|
37
|
#--@F active module from UEFI
|
38
|
function regMod() {
|
38
|
function regMod() {
|
39
|
-if [[ ! -f $path_script/MOK.der ]]; then
|
|
|
|
|
39
|
+if [[ -f $path_script/MOK.der ]]; then
|
40
|
if mokutil --import $path_script/MOK.der; then
|
40
|
if mokutil --import $path_script/MOK.der; then
|
41
|
eval mod_ls="(" $(find /lib/modules/$(uname -r) -type f -name "$opt".ko -printf '%f\n') ")";
|
41
|
eval mod_ls="(" $(find /lib/modules/$(uname -r) -type f -name "$opt".ko -printf '%f\n') ")";
|
42
|
if [[ "$(echo -e ${#mod_ls[@]})" != "0" ]]; then
|
42
|
if [[ "$(echo -e ${#mod_ls[@]})" != "0" ]]; then
|