Skip to content

Commit

Permalink
Merge pull request #1509 from RaspAP/maint/os-detection
Browse files Browse the repository at this point in the history
Parse /etc/os-release directly (compatibility)
  • Loading branch information
billz authored Jan 30, 2024
2 parents 224f4ca + 3ee4ea9 commit ccbdf8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RaspAP/System/Sysinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function hostapdStatus()

public function operatingSystem()
{
$os_desc = shell_exec("lsb_release -sd");
$os_desc = shell_exec("cat /etc/os-release | awk -F= '/^PRETTY_NAME/ {print $2}' | sed 's/\"//g'");
return $os_desc;
}

Expand Down

0 comments on commit ccbdf8d

Please sign in to comment.