Crates.io | rbtw |
lib.rs | rbtw |
version | 1.0.2 |
source | src |
created_at | 2023-03-21 00:58:06.418474 |
updated_at | 2023-03-23 21:41:52.272329 |
description | Reboot from linux to windows while linux stays the default OS |
homepage | |
repository | https://github.com/dvdsk/rbtw |
max_upload_size | |
id | 815756 |
size | 49,906 |
Restarts the computer to windows from Linux. The next boot will be to the default OS again. The first run will ask for sudo, after that it can run without sudo. Copy into your path at .local/bin
to restart to windows with 4 keystrokes.
The program will crash/halts if there is no windows bootloader or if there are multiple.
You can either download the binary, it should work on any Linux system. Or install from source on crates.io, recommended if you have cargo
installed
cargo
and crates.io use: cargo +nightly install rbtw
.local/bin
or for a system-wide install /usr/bin/chmod
.you can use the shell script:
#!/usr/bin/env bash
bootnext=$(efibootmgr | grep Windows | cut -c 5-8)
sudo efibootmgr --bootnext $bootnext
reboot
This will however, need a sudo password on each run. You can set the SetUID bit for efibootmgr and remove the sudo call to get around this.