feat: confirm enter BIOS with cosmic-osd
This commit is contained in:
parent
d4589925ca
commit
9f8f17a783
1 changed files with 7 additions and 1 deletions
|
|
@ -13,7 +13,13 @@ is_gnome() {
|
||||||
dbus-send --print-reply --dest=org.gnome.Shell /org/gnome/Shell org.freedesktop.DBus.Properties.Get string:org.gnome.Shell string:ShellVersion >/dev/null 2>&1
|
dbus-send --print-reply --dest=org.gnome.Shell /org/gnome/Shell org.freedesktop.DBus.Properties.Get string:org.gnome.Shell string:ShellVersion >/dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
if is_gnome; then
|
is_cosmic() {
|
||||||
|
command -v cosmic-osd >/dev/null && [ "$XDG_SESSION_DESKTOP" = "COSMIC" ]
|
||||||
|
}
|
||||||
|
|
||||||
|
if is_cosmic; then
|
||||||
|
cosmic-osd enter-bios
|
||||||
|
elif is_gnome; then
|
||||||
systemctl reboot --firmware-setup
|
systemctl reboot --firmware-setup
|
||||||
elif command -v systemctl >/dev/null; then
|
elif command -v systemctl >/dev/null; then
|
||||||
systemctl reboot --firmware-setup
|
systemctl reboot --firmware-setup
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue