Fix script
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
signfile(){
|
signfile(){
|
||||||
if ! sbverify --cert "/boot/key/MOK.crt" "$FILE" &>/dev/null; then
|
if ! sbverify --cert "/boot/key/MOK.crt" "$1" &>/dev/null; then
|
||||||
sbsign --key "/boot/key/MOK.key" --cert "/boot/key/MOK.crt" --output "$FILE" "$FILE"
|
sbsign --key "/boot/key/MOK.key" --cert "/boot/key/MOK.crt" --output "$1" "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
find /boot -type d | while read -r dir; do
|
find /boot -type d | while read -r dir; do
|
||||||
|
|||||||
Reference in New Issue
Block a user