Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modificaton to allow easy upgrade of device OS #197

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions PPPwn/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,8 @@ function setEnd() {
}


print("<button name=\"network\">Network Settings</button> &nbsp; <button name=\"restart\">Restart PPPwn</button> &nbsp; <button name=\"reboot\">Reboot PI</button> &nbsp; <button name=\"shutdown\">Shutdown PI</button> &nbsp; <button name=\"update\">Update</button>
print("<button name=\"network\">Network Settings</button> &nbsp; <button name=\"restart\">Restart PPPwn</button> &nbsp; <button name=\"reboot\">Reboot PI</button> &nbsp; <button
name=\"shutdown\">Shutdown PI</button> &nbsp; <button name=\"patch\">Update Raspbian/OS</button> &nbsp; <button name=\"update\">Update</button>
</form>
</center><br><table align=center><td><form method=\"post\">");

Expand Down Expand Up @@ -786,6 +787,14 @@ function setEnd() {
}
");

if (isset($_POST['patch'])){
exec('sudo bash /boot/firmware/PPPwn/patch.sh >> /dev/null &');
print("logger.style.display = \"block\";
var lbody = document.getElementsByClassName(\"logger-body\")[0];
lbody.innerHTML = '<textarea disabled id=\"text_box\" rows=\"40\"></textarea>';
startLog('patch.log');");
}

if (isset($_POST['update'])){
exec('sudo bash /boot/firmware/PPPwn/update.sh >> /dev/null &');
print("logger.style.display = \"block\";
Expand All @@ -798,4 +807,4 @@ function setEnd() {
</body>
</html>");

?>
?>