MrPicklePinosaur / shrs

The rusty shell toolkit for hackers
https://mrpicklepinosaur.github.io/shrs/
Apache License 2.0
301 stars 24 forks source link

[Bug]: hostname utility should have fallback commands #472

Open MrPicklePinosaur opened 3 months ago

MrPicklePinosaur commented 3 months ago

What went wrong?

The prompt utility hostname() uses the command hostname to query for the device hostname. However for some platforms this command is not available, so should provide a couple of fallback commands to run to maximize compatibility.