-
Notifications
You must be signed in to change notification settings - Fork 240
Fix isRaspian() to properly detect Buster image #637
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
Conversation
Whelp this snowballed. That's ok. Here's today's direction:
So far, the public API is down to just: isRoot() - whether or not certain commands can be expected to succeed TODO still: Rework the metrics command to use the hardcoded values for Pi's, but still support and run on non-Pi platform IFF the user supplies the approprate shell commands. |
You are going to run into some problems on a Mac. You defined "unixSupported" as Mac or Linux, and that is fine. But you are using unixSupported in a lot of places where you really should be testing for Linux. For example, in the code to restart the photonvision executable, "systemctl" is very definitely only on Linux (and then not even on some). |
…to file, but fall back on hardcoded commands for certain platforms
# Conflicts: # photon-core/src/main/java/org/photonvision/common/hardware/Platform.java # photon-core/src/main/java/org/photonvision/common/networking/NetworkManager.java
I created a PR to merge some changes into this branch. It implements cmds for a general Linux platform. |
Closes #637 |
* Move generic commands from PiCmds to LinuxCmds; have PiCmds inherit from LinuxCmds * Better names for variables to save the total memory values * Remove "Bionic" from the architecture; that is not actually determined. * Trigger PhotonVision CI * Dummy change to trigger CI
Works on my pi 3 at least |
Update index.html
* Revised isRaspian() call to look in multiple spots to check if we're a Pi or not * wpiformat * linefeed fixup * whoops * WIP updating platform * More platform fixups WIP * Condensed metrics classes, but expanded the configuration to default to file, but fall back on hardcoded commands for certain platforms * Migrate unixSupported to isLinux * applied spotless * wpiformat * Linux metrics (PhotonVision#641) * Move generic commands from PiCmds to LinuxCmds; have PiCmds inherit from LinuxCmds * Better names for variables to save the total memory values * Remove "Bionic" from the architecture; that is not actually determined. * Trigger PhotonVision CI * Dummy change to trigger CI * Run format Update index.html Co-authored-by: Mohammad Durrani <46766905+mdurrani808@users.noreply.github.com> Co-authored-by: Paul Rensing <prensing@gmail.com> Co-authored-by: Matt <matthew.morley.ca@gmail.com>
Revised isRaspian() call to look in multiple spots to check if we're a Pi or not