Browse Source

fix error 30.05.23:18.53

root 1 year ago
parent
commit
4fe4773eb4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/module-reg4uefi

+ 1 - 1
src/module-reg4uefi

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