Update build workflow to create Debian package and adjust release directory
All checks were successful
/ release (nightly) (push) Successful in 2m21s

This commit is contained in:
Edgar P. Burkhart 2025-05-14 12:54:36 +02:00
parent 86fc2c236e
commit fbb62b9006
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
3 changed files with 18 additions and 9 deletions

View file

@ -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")
}
}