private function getBsdId() : ?string { $file = $this->dir . self::PATH_ETC_HOSTID; if (is_file($file) && is_readable($file)) { return trim(file_get_contents($file)); } $out = exec('which kenv && kenv -q smbios.system.uuid'); if ($out) { return $out; } return null; }