| @@ 1048-1054 (lines=7) @@ | ||
| 1045 | } else { |
|
| 1046 | $this->sys->setDistribution($distribution['Name']." ".trim($buf)); |
|
| 1047 | } |
|
| 1048 | } else { |
|
| 1049 | if (is_null($buf) || (trim($buf) == "")) { |
|
| 1050 | $this->sys->setDistribution($section); |
|
| 1051 | } else { |
|
| 1052 | $this->sys->setDistribution(trim($buf)); |
|
| 1053 | } |
|
| 1054 | } |
|
| 1055 | if (isset($distribution['Files2'])) { |
|
| 1056 | foreach (preg_split("/;/", $distribution['Files2'], -1, PREG_SPLIT_NO_EMPTY) as $filename2) { |
|
| 1057 | if (CommonFunctions::fileexists($filename2) && CommonFunctions::rfts($filename2, $buf, 0, 4096, false)) { |
|
| @@ 1192-1198 (lines=7) @@ | ||
| 1189 | } else { |
|
| 1190 | $this->sys->setDistribution($list['Debian']['Name']." ".trim($buf)); |
|
| 1191 | } |
|
| 1192 | } else { |
|
| 1193 | if (is_null($buf) || (trim($buf) == "")) { |
|
| 1194 | $this->sys->setDistribution('Debian'); |
|
| 1195 | } else { |
|
| 1196 | $this->sys->setDistribution(trim($buf)); |
|
| 1197 | } |
|
| 1198 | } |
|
| 1199 | } elseif (CommonFunctions::fileexists($filename="/etc/config/uLinux.conf") |
|
| 1200 | && CommonFunctions::rfts($filename, $buf, 0, 4096, false) |
|
| 1201 | && preg_match("/^Rsync\sModel\s*=\s*QNAP/m", $buf) |
|