mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Parse /etc/os-release versus lsb_release (compatibility)
This commit is contained in:
		| @@ -83,7 +83,7 @@ class Sysinfo | ||||
|  | ||||
|     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; | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user