| @@ 147-150 (lines=4) @@ | ||
| 144 | protected function _distro() |
|
| 145 | { |
|
| 146 | $buf = ""; |
|
| 147 | if (CommonFunctions::rfts('/system/build.prop', $lines, 0, 4096, false) |
|
| 148 | && preg_match('/^ro\.build\.version\.release=([^\n]+)/m', $lines, $ar_buf)) { |
|
| 149 | $buf = trim($ar_buf[1]); |
|
| 150 | } |
|
| 151 | if (is_null($buf) || ($buf == "")) { |
|
| 152 | $this->sys->setDistribution('Android'); |
|
| 153 | } else { |
|
| @@ 136-141 (lines=6) @@ | ||
| 133 | if (CommonFunctions::executeProgram($uname, '-m', $strBuf, PSI_DEBUG)) { |
|
| 134 | $result .= ' '.$strBuf; |
|
| 135 | } |
|
| 136 | } elseif (CommonFunctions::rfts('/proc/version', $strBuf, 1) && preg_match('/version (.*?) /', $strBuf, $ar_buf)) { |
|
| 137 | $result = $ar_buf[1]; |
|
| 138 | if (preg_match('/SMP/', $strBuf)) { |
|
| 139 | $result .= ' (SMP)'; |
|
| 140 | } |
|
| 141 | } |
|
| 142 | if ($result != "") { |
|
| 143 | if (CommonFunctions::rfts('/proc/self/cgroup', $strBuf2, 0, 4096, false)) { |
|
| 144 | if (preg_match('/:\/lxc\//m', $strBuf2)) { |
|