Update build workflow to create Debian package and adjust release directory
All checks were successful
/ release (nightly) (push) Successful in 2m21s
All checks were successful
/ release (nightly) (push) Successful in 2m21s
This commit is contained in:
parent
86fc2c236e
commit
fbb62b9006
3 changed files with 18 additions and 9 deletions
|
@ -6,8 +6,7 @@ use std::io::Write;
|
|||
fn main() {
|
||||
println!("Reading kernel messages...");
|
||||
|
||||
let kmsg_file =
|
||||
File::open_buffered("/dev/kmsg").expect("Failed to open /dev/kmsg");
|
||||
let kmsg_file = File::open_buffered("/dev/kmsg").expect("Failed to open /dev/kmsg");
|
||||
|
||||
let lines = kmsg_file.lines();
|
||||
for line in lines {
|
||||
|
@ -43,8 +42,7 @@ fn echo1(path: String) {
|
|||
match rm_file {
|
||||
Err(e) => println!("Failed to open remove file at {path}: {e}"),
|
||||
Ok(mut file) => {
|
||||
file
|
||||
.write_all(b"1")
|
||||
file.write_all(b"1")
|
||||
.expect("Failed to write to remove file");
|
||||
println!("Removed device {path}");
|
||||
}
|
||||
|
@ -53,4 +51,4 @@ fn echo1(path: String) {
|
|||
|
||||
fn rm_file_path(id: &str) -> String {
|
||||
format!("/sys/bus/pci/devices/{id}/remove")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue