Open iyerusad opened 2 years ago
We can probably expose some of these (we're working on an interface to do so), yeah. But it's all manual from our side, so we'll probably start with the obvious ones first. To help us pick, what are you planning on use this for?
To help us pick, what are you planning on use this for?
Mostly for fun + easy visualization of what/where I'm working on in a new shell session.
The one practical use case that came up was/is limiting certain packages from being installed on iSH environment until CPU instructions are working (e.g. rely on built-in ls
vs something like lsd which has some bugs within iSH at the moment).
If I had to say biggest interest would be possibly an additional /etc/ish-release
file that might allow more structured parsing of iSH version etc - the current cat /proc/version
looks to be a little difficult to parse sanely.
If I had to say biggest interest would be possibly an additional
/etc/ish-release
file that might allow more structured parsing of iSH version etc - the currentcat /proc/version
looks to be a little difficult to parse sanely.
Boy do I have the commit for you: https://github.com/ish-app/ish/commit/a2df244e81be2780d1ce800125104d24c5574090
What are the identification options within iSH/can we get more identification in iSH?
What info might be useful:
Places I have checked:
uname -a
cat /etc/os-release
cat /proc/version
nproc
getconf _NPROCESSORS_ONLN
cat /proc/meminfo | grep MemTotal
hostname
df -h
/
lscpu
- failed to determine number of CPUscat /proc/cpuinfo
- failed, no such filefree
- failed, returns table of memory data, but unpopulated/zero valueslspci
- failed, cannot open /proc/bus/pcilshw
- failed, returns data but not particularly usefulhwinfo
- mostly failed, returns data but most details are not implemented/unable to probeip a
/ip addr
- failed, invalid argument/socket doesn't existWhy
Find it neat to see this kind of info injected it into my .profile, example below on new shell session:
P.S.> ❤️ Kudos on a neat project, been tweaking .dotfiles to support iSH, been a fun way to dip toe into Alpine and challenge assumptions of available tools (or even CPU instructions) and the lack thereof.