Compare commits
4 commits
8209d6936f
...
9d9fd9bcd1
Author | SHA1 | Date | |
---|---|---|---|
9d9fd9bcd1 | |||
8964f49049 | |||
fafbddf1d3 | |||
8d1088f947 |
2 changed files with 6 additions and 4 deletions
|
@ -120,7 +120,9 @@ sudo zypper install rustup -y && rustup toolchain install stable
|
|||
### **INSTALLATION VIA CARGO**
|
||||
As of right now I have not published anything to crates.io or anything similar. So as of right now you can do a:
|
||||
|
||||
cargo install --git https://git.schotty.com/andrew/osupdater.git
|
||||
```
|
||||
cargo install --git https://git.schotty.com/andrew/osupdater.git
|
||||
```
|
||||
|
||||
This will download the repo, compile, and install the binary in __**~/.cargo/bin/**__, so ensure if you use this method you have that path in your __**$PATH**__ environment variable.
|
||||
|
||||
|
|
|
@ -181,17 +181,17 @@ fn update_firmware() {
|
|||
|
||||
let path = Path::new(&fwupdmgr_bin);
|
||||
if path.exists(){
|
||||
cprintln!("<bold><rev>osupdater: Updating firware db</rev></bold>");
|
||||
cprintln!("<bold><rev>osupdater: Updating firmware db</rev></bold>");
|
||||
let mut cmd =
|
||||
Command::new(&sudo_bin)
|
||||
.arg(&fwupdmgr_bin).arg("refresh").arg("-y").arg("--force")
|
||||
.stdout(Stdio::inherit()).stderr(Stdio::inherit())
|
||||
.spawn().unwrap();
|
||||
let _output = cmd.wait();
|
||||
cprintln!("<bold><rev>osupdater: Updating firware</rev></bold>");
|
||||
cprintln!("<bold><rev>osupdater: Updating firmware</rev></bold>");
|
||||
let mut cmd =
|
||||
Command::new(&sudo_bin)
|
||||
.arg(&fwupdmgr_bin).arg("get-updates").arg("-y")
|
||||
.arg(&fwupdmgr_bin).arg("update").arg("-y")
|
||||
.stdout(Stdio::inherit()).stderr(Stdio::inherit())
|
||||
.spawn().unwrap();
|
||||
let _output = cmd.wait();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue