Skip to content

Commit

Permalink
update-agent: don't use dbus if run with '--nodbus' (#309)
Browse files Browse the repository at this point in the history
fix: if run with '--nodbus' don't try using dbus for shutdown.

Co-authored-by: Ryan Butler <thebutlah@gmail.com>
  • Loading branch information
alekseifedotov and TheButlah authored Dec 7, 2024
1 parent c5ffec4 commit a650a37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions update-agent/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -693,8 +693,8 @@ fn shutdown_with_executable() -> eyre::Result<()> {
/// ⚠️ BUT, we need to send the power-off/shutdown command to the Jetson
/// because the microcontroller can't detect a Jetson reboot.
fn reboot(settings: &Settings) -> eyre::Result<()> {
debug!("trying to shut down using dbus");
if !settings.recovery {
if !settings.recovery && !settings.nodbus {
debug!("trying to shut down using dbus");
match shutdown_with_dbus() {
Ok(()) => return Ok(()),
Err(e) => {
Expand Down

0 comments on commit a650a37

Please sign in to comment.