added function to check if user is using uefi or legacy
parent
5aa37a1e5f
commit
35fa6a7e17
@ -0,0 +1,28 @@
|
||||
import 'package:jade_gui/classes/desktop.dart';
|
||||
import 'package:jade_gui/classes/location.dart';
|
||||
|
||||
class installPrefs {
|
||||
final Location locale;
|
||||
final String keymap;
|
||||
final String layout;
|
||||
final String username;
|
||||
final bool enableSudo;
|
||||
final bool enableRoot;
|
||||
final Desktop desktop;
|
||||
final String disk;
|
||||
|
||||
installPrefs({
|
||||
this.locale = const Location(),
|
||||
this.keymap = "",
|
||||
this.layout = "",
|
||||
this.username = "",
|
||||
this.enableSudo = false,
|
||||
this.enableRoot = false,
|
||||
this.desktop = const Desktop(),
|
||||
this.disk = "",
|
||||
});
|
||||
|
||||
/* Map toJson() => {
|
||||
|
||||
}*/
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:jade_gui/classes/installPrefs.dart';
|
||||
import 'package:jade_gui/classes/desktop.dart';
|
||||
import 'package:jade_gui/classes/location.dart';
|
||||
|
||||
Widget install(
|
||||
String keymap,
|
||||
String layout,
|
||||
bool enableSudo,
|
||||
bool enableRoot,
|
||||
String username,
|
||||
String disk,
|
||||
Desktop currDesktop,
|
||||
Location locale,
|
||||
) {
|
||||
installPrefs prefs = installPrefs(
|
||||
locale: locale,
|
||||
keymap: keymap,
|
||||
layout: layout,
|
||||
username: username,
|
||||
enableSudo: enableSudo,
|
||||
enableRoot: enableRoot,
|
||||
desktop: currDesktop);
|
||||
return Column(
|
||||
children: [
|
||||
const Text(
|
||||
'Installing...',
|
||||
style: TextStyle(
|
||||
fontSize: 50,
|
||||
fontWeight: FontWeight.bold,
|
||||
color: Color.fromARGB(255, 169, 0, 255)),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
@ -0,0 +1,2 @@
|
||||
#!/usr/bin/bash
|
||||
[ -d /sys/firmware/efi ] && echo UEFI || echo BIOS
|
Loading…
Reference in New Issue