init: reiniciar después de correr init
This commit is contained in:
parent
a46cc0d308
commit
ec3a75acca
1 changed files with 3 additions and 0 deletions
|
@ -48,5 +48,8 @@ fn main() -> Result<(), io::Error> {
|
||||||
if !status.success() {
|
if !status.success() {
|
||||||
println!("{}", status);
|
println!("{}", status);
|
||||||
}
|
}
|
||||||
|
nix::sys::reboot::reboot(nix::sys::reboot::RebootMode::RB_AUTOBOOT)
|
||||||
|
.map(|_| {})
|
||||||
|
.unwrap();
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue