mirror of
https://github.com/Metabolix/HackBGRT.git
synced 2026-09-26 05:51:22 -07:00
Create OsIndications if it's missing
This commit is contained in:
@@ -170,6 +170,10 @@ public class Efi {
|
|||||||
*/
|
*/
|
||||||
public static void SetBootToFW() {
|
public static void SetBootToFW() {
|
||||||
Variable tmp = GetVariable("OsIndications");
|
Variable tmp = GetVariable("OsIndications");
|
||||||
|
if (tmp.Data == null) {
|
||||||
|
tmp.Data = new byte[8];
|
||||||
|
tmp.Attributes = 7;
|
||||||
|
}
|
||||||
tmp.Data[0] |= 1;
|
tmp.Data[0] |= 1;
|
||||||
SetVariable(tmp);
|
SetVariable(tmp);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user