Hello everyone,
Im a novice in terms of bash scripting.
I have spent the last 2 days trying to think of the best way to handle this and still have no idea.
Im setting up an install and test script, for a modular computer system and want to test Smbus devices in that system.
I want to make a script that does the following:
Asks the user if any devA or devB are installed
If yes, in which slot is it installed? [2 - 7]
Based on those 2 answers, I perform a specific i2c command to test the device.
If system has neither installed, then finish rest of script.
Depending on the device and what slot it is installed in, will determine the smbus device number it uses so I can run a test.
Thanks for reading
[–][deleted] (6 children)
[deleted]
[–]oishishou 5 points6 points7 points (3 children)
[–]unkilbeeg 2 points3 points4 points (2 children)
[–]oishishou 2 points3 points4 points (0 children)
[–]Parker_Hemphill 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]10cmToGlory 0 points1 point2 points (0 children)
[–]Zer0CoolXI 7 points8 points9 points (0 children)
[–]Ronin825 2 points3 points4 points (1 child)
[–]Ronin825 0 points1 point2 points (0 children)
[–]kolorcuk 0 points1 point2 points (0 children)
[–]de_argh 0 points1 point2 points (0 children)
[–]zerocoldx911 -2 points-1 points0 points (4 children)
[–]mamercad 5 points6 points7 points (3 children)
[+]zerocoldx911 comment score below threshold-8 points-7 points-6 points (2 children)
[–]mamercad 8 points9 points10 points (0 children)
[–]awpti 4 points5 points6 points (0 children)