Adds raspberry pi firmware update tool rpi-update (#150)
* Adds 'Dein' vim plugin manager support * Add missing comma * Adds rpi-update command
This commit is contained in:
committed by
Roey Darwish Dror
parent
599fa49260
commit
ac2524edd7
@@ -372,6 +372,12 @@ fn run() -> Result<(), Error> {
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
execute(
|
||||
&mut report,
|
||||
"rpi-update",
|
||||
|| linux::run_rpi_update(sudo.as_ref(), run_type),
|
||||
config.no_retry(),
|
||||
)?;
|
||||
execute(
|
||||
&mut report,
|
||||
"Firmware upgrades",
|
||||
|
||||
@@ -300,6 +300,16 @@ pub fn run_snap(sudo: Option<&PathBuf>, run_type: RunType) -> Result<(), Error>
|
||||
run_type.execute(sudo).arg(snap).arg("refresh").check_run()
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn run_rpi_update(sudo: Option<&PathBuf>, run_type: RunType) -> Result<(), Error> {
|
||||
let sudo = require_option(sudo)?;
|
||||
let rpi_update = require("rpi-update")?;
|
||||
|
||||
print_separator("rpi-update");
|
||||
|
||||
run_type.execute(sudo).arg(rpi_update).check_run()
|
||||
}
|
||||
|
||||
#[must_use]
|
||||
pub fn run_etc_update(sudo: Option<&PathBuf>, run_type: RunType) -> Result<(), Error> {
|
||||
let sudo = require_option(sudo)?;
|
||||
|
||||
Reference in New Issue
Block a user