Fixes for sheevaplug-installer-v1.1-lite/runme.php

This forum is for topics dealing with problems with software specifically in the ARMv5 repo.

Fixes for sheevaplug-installer-v1.1-lite/runme.php

Postby larrybaker » Fri Aug 01, 2014 9:50 pm

Fix sheevaplug-installer-v1.1-lite/runme.php to change the “<?” tag to “<?php”, use getenv() in place of $_ENV[], and fix a bug in function beep().

$this->bbcode_second_pass_code('', '
--- sheevaplug-installer-v1.1-lite/runme.php
+++ sheevaplug-installer-v1.1-lite/runme.php
@@ -1,2 +1,2 @@
-<?
+<?php

@@ -6,3 +6,3 @@
/* find out if we run on Linux/Windows*/
-if (strstr($_ENV["OS"], "Windows"))
+if (strstr(getenv("OS"), "Windows"))
$WIN32=1;
@@ -42,3 +42,3 @@
{
- if ($_ENV["USER"] != 'root')
+ if (getenv("USER") != 'root')
die("You must run this as root\n");
@@ -85,2 +85,3 @@
function beep ($int_beeps = 1) {
+ $string_beeps = "";
for ($i = 0; $i < $int_beeps; $i++): $string_beeps .= "\x07"; endfor;
')

Larry Baker
US Geological Survey
larrybaker
 
Posts: 25
Joined: Thu Jan 17, 2013 7:38 pm

Return to ARMv5

Who is online

Users browsing this forum: No registered users and 1 guest