@@ -164,50 +164,42 @@ function get_distname() {
164164 $ relname = "UNKNOWN " ;
165165 }
166166 $ distver = $ ver .$ lts ." " .$ relname ;
167- swriteln ("Operating System: " .$ distname .' ' .$ distver ."\n" );
168167 } elseif (trim (file_get_contents ('/etc/debian_version ' )) == '4.0 ' ) {
169168 $ distname = 'Debian ' ;
170169 $ distver = '4.0 ' ;
171170 $ distid = 'debian40 ' ;
172171 $ distbaseid = 'debian ' ;
173- swriteln ("Operating System: Debian 4.0 or compatible \n" );
174172 } elseif (strstr (trim (file_get_contents ('/etc/debian_version ' )), '5.0 ' )) {
175173 $ distname = 'Debian ' ;
176174 $ distver = 'Lenny ' ;
177175 $ distid = 'debian40 ' ;
178176 $ distbaseid = 'debian ' ;
179- swriteln ("Operating System: Debian Lenny or compatible \n" );
180177 } elseif (strstr (trim (file_get_contents ('/etc/debian_version ' )), '6.0 ' ) || trim (file_get_contents ('/etc/debian_version ' )) == 'squeeze/sid ' ) {
181178 $ distname = 'Debian ' ;
182179 $ distver = 'Squeeze/Sid ' ;
183180 $ distid = 'debian60 ' ;
184181 $ distbaseid = 'debian ' ;
185- swriteln ("Operating System: Debian 6.0 (Squeeze/Sid) or compatible \n" );
186182 } elseif (strstr (trim (file_get_contents ('/etc/debian_version ' )), '7.0 ' ) || substr (trim (file_get_contents ('/etc/debian_version ' )),0 ,2 ) == '7. ' || trim (file_get_contents ('/etc/debian_version ' )) == 'wheezy/sid ' ) {
187183 $ distname = 'Debian ' ;
188184 $ distver = 'Wheezy/Sid ' ;
189185 $ distid = 'debian60 ' ;
190186 $ distbaseid = 'debian ' ;
191- swriteln ("Operating System: Debian 7.0 (Wheezy/Sid) or compatible \n" );
192187 } elseif (strstr (trim (file_get_contents ('/etc/debian_version ' )), '8 ' ) || substr (trim (file_get_contents ('/etc/debian_version ' )),0 ,1 ) == '8 ' ) {
193188 $ distname = 'Debian ' ;
194189 $ distver = 'Jessie ' ;
195190 $ distid = 'debian60 ' ;
196191 $ distbaseid = 'debian ' ;
197- swriteln ("Operating System: Debian 8.0 (Jessie) or compatible \n" );
198192 } elseif (strstr (trim (file_get_contents ('/etc/debian_version ' )), '/sid ' )) {
199193 $ distname = 'Debian ' ;
200194 $ distver = 'Testing ' ;
201195 $ distid = 'debian60 ' ;
202196 $ distconfid = 'debiantesting ' ;
203197 $ distbaseid = 'debian ' ;
204- swriteln ("Operating System: Debian Testing \n" );
205198 } else {
206199 $ distname = 'Debian ' ;
207200 $ distver = 'Unknown ' ;
208201 $ distid = 'debian40 ' ;
209202 $ distbaseid = 'debian ' ;
210- swriteln ("Operating System: Debian or compatible, unknown version. \n" );
211203 }
212204 }
213205
@@ -218,25 +210,21 @@ function get_distname() {
218210 $ distver = '11.0 ' ;
219211 $ distid = 'opensuse110 ' ;
220212 $ distbaseid = 'opensuse ' ;
221- swriteln ("Operating System: openSUSE 11.0 or compatible \n" );
222213 } elseif (stristr (file_get_contents ('/etc/SuSE-release ' ), '11.1 ' )) {
223214 $ distname = 'openSUSE ' ;
224215 $ distver = '11.1 ' ;
225216 $ distid = 'opensuse110 ' ;
226217 $ distbaseid = 'opensuse ' ;
227- swriteln ("Operating System: openSUSE 11.1 or compatible \n" );
228218 } elseif (stristr (file_get_contents ('/etc/SuSE-release ' ), '11.2 ' )) {
229219 $ distname = 'openSUSE ' ;
230220 $ distver = '11.2 ' ;
231221 $ distid = 'opensuse112 ' ;
232222 $ distbaseid = 'opensuse ' ;
233- swriteln ("Operating System: openSUSE 11.2 or compatible \n" );
234223 } else {
235224 $ distname = 'openSUSE ' ;
236225 $ distver = 'Unknown ' ;
237226 $ distid = 'opensuse112 ' ;
238227 $ distbaseid = 'opensuse ' ;
239- swriteln ("Operating System: openSUSE or compatible, unknown version. \n" );
240228 }
241229 }
242230
@@ -251,62 +239,52 @@ function get_distname() {
251239 $ distver = '9 ' ;
252240 $ distid = 'fedora9 ' ;
253241 $ distbaseid = 'fedora ' ;
254- swriteln ("Operating System: Fedora 9 or compatible \n" );
255242 } elseif (stristr ($ content , 'Fedora release 10 (Cambridge) ' )) {
256243 $ distname = 'Fedora ' ;
257244 $ distver = '10 ' ;
258245 $ distid = 'fedora9 ' ;
259246 $ distbaseid = 'fedora ' ;
260- swriteln ("Operating System: Fedora 10 or compatible \n" );
261247 } elseif (stristr ($ content , 'Fedora release 10 ' )) {
262248 $ distname = 'Fedora ' ;
263249 $ distver = '11 ' ;
264250 $ distid = 'fedora9 ' ;
265251 $ distbaseid = 'fedora ' ;
266- swriteln ("Operating System: Fedora 11 or compatible \n" );
267252 } elseif (stristr ($ content , 'CentOS release 5.2 (Final) ' )) {
268253 $ distname = 'CentOS ' ;
269254 $ distver = '5.2 ' ;
270255 $ distid = 'centos52 ' ;
271256 $ distbaseid = 'fedora ' ;
272- swriteln ("Operating System: CentOS 5.2 or compatible \n" );
273257 } elseif (stristr ($ content , 'CentOS release 5.3 (Final) ' )) {
274258 $ distname = 'CentOS ' ;
275259 $ distver = '5.3 ' ;
276260 $ distid = 'centos53 ' ;
277261 $ distbaseid = 'fedora ' ;
278- swriteln ("Operating System: CentOS 5.3 or compatible \n" );
279262 } elseif (stristr ($ content , 'CentOS release 5 ' )) {
280263 $ distname = 'CentOS ' ;
281264 $ distver = 'Unknown ' ;
282265 $ distid = 'centos53 ' ;
283266 $ distbaseid = 'fedora ' ;
284- swriteln ("Operating System: CentOS 5 or compatible \n" );
285267 } elseif (stristr ($ content , 'CentOS Linux release 6 ' )) {
286268 $ distname = 'CentOS ' ;
287269 $ distver = 'Unknown ' ;
288270 $ distid = 'centos53 ' ;
289271 $ distbaseid = 'fedora ' ;
290- swriteln ("Operating System: CentOS 6 or compatible \n" );
291272 } elseif (stristr ($ content , 'CentOS Linux release 7.2 ' )) {
292273 $ distname = 'CentOS ' ;
293274 $ distver = 'Unknown ' ;
294275 $ distid = 'centos70 ' ;
295276 $ distconfid = 'centos72 ' ;
296277 $ distbaseid = 'fedora ' ;
297- swriteln ("Operating System: CentOS 7.2 \n" );
298278 } elseif (stristr ($ content , 'CentOS Linux release 7 ' )) {
299279 $ distname = 'CentOS ' ;
300280 $ distver = 'Unknown ' ;
301281 $ distid = 'centos70 ' ;
302282 $ distbaseid = 'fedora ' ;
303- swriteln ("Operating System: CentOS 7 or compatible \n" );
304283 } else {
305284 $ distname = 'Redhat ' ;
306285 $ distver = 'Unknown ' ;
307286 $ distid = 'fedora9 ' ;
308287 $ distbaseid = 'fedora ' ;
309- swriteln ("Operating System: Redhat or compatible, unknown version. \n" );
310288 }
311289 }
312290
@@ -320,7 +298,6 @@ function get_distname() {
320298 $ distver = $ version [0 ][0 ].$ version [0 ][1 ];
321299 $ distid = 'gentoo ' ;
322300 $ distbaseid = 'gentoo ' ;
323- swriteln ("Operating System: Gentoo $ distver or compatible \n" );
324301
325302 } else {
326303 die ('Unrecognized GNU/Linux distribution ' );
0 commit comments