Skip to content

Commit

Permalink
Properly handle ifconfig absence in the daemon #26
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAlexDev23 committed Oct 14, 2024
1 parent 5fd8a1b commit abf4674
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/power-daemon/src/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ impl NetworkSettings {
fn toggle_all_ethernet_cards(disable: bool) {
if !command_exists("ifconfig") {
error!("ifconfig is not present in the system, ignoring ethernet settings...");
return;
}

let entries = fs::read_dir("/sys/class/net").expect("Could not read sysfs path");
Expand Down

0 comments on commit abf4674

Please sign in to comment.