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:
Philipp Weißmann
2019-05-15 11:34:20 +02:00
committed by Roey Darwish Dror
parent 599fa49260
commit ac2524edd7
3 changed files with 17 additions and 0 deletions

View File

@@ -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)?;