Skip to content

Simple script to detect connected hardware#20

Open
sopa40 wants to merge 3 commits intoKernel-GL-HRK:nazar.sopihafrom
sopa40:03_bash
Open

Simple script to detect connected hardware#20
sopa40 wants to merge 3 commits intoKernel-GL-HRK:nazar.sopihafrom
sopa40:03_bash

Conversation

@sopa40
Copy link

@sopa40 sopa40 commented Feb 19, 2021

Script has very limited functionality. Please check the commit descriptions. Part of code to detect i2c does not work properly, that is why it is implemented but in a worse style. Deadline came, no time to improve atm.

Signed-off-by: Nazar Sopiha <nazar.sopiha@gmail.com>
It is now detecting i2c (not via checking but just via ls command,
don't know why function gets an error).
Then script goes into an infinite cycle -
for further decetions of plugged and unplugged hardware

Signed-off-by: Nazar Sopiha <nazar.sopiha@gmail.com>
@sopa40 sopa40 added question Further information is requested Ready for review Ready for review labels Feb 19, 2021
@sopa40 sopa40 requested a review from ReAlUA February 19, 2021 00:15
Copy link
Contributor

@ReAlUA ReAlUA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep working

@ReAlUA ReAlUA added Change requested Change requested and removed Ready for review Ready for review question Further information is requested labels Feb 19, 2021
It is now detecting i2c and flash connected devices
Then script goes into an infinite cycle -
for further decetions of hot plugged and unplugged hardware

Signed-off-by: Nazar Sopiha <nazar.sopiha@gmail.com>
@sopa40 sopa40 added Ready for review Ready for review and removed Change requested Change requested labels Feb 19, 2021

while true
do
echo "Detecting plugged and unplugged hardware. TBD"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you going to continue working on this script?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have made changes to the current version and functionality (i2c + flash and no real time detection, commit d0a1332). If they are ok, I would suggest to merge this patch for now.
I will come back and extend functionality when I have more time, but I see it as another patch.
If you insist on working more on this topic, I will change my priorities.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll wait.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready for review Ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants