Task02: Implement hardware detector script#160
Open
SlavaGolubnichiy wants to merge 3 commits intoKernel-GL-HRK:mainfrom
Open
Task02: Implement hardware detector script#160SlavaGolubnichiy wants to merge 3 commits intoKernel-GL-HRK:mainfrom
SlavaGolubnichiy wants to merge 3 commits intoKernel-GL-HRK:mainfrom
Conversation
Added file RockPaperScissors.c with implemented functions: - randomize() which returns 32-bit pseudo-random number; - get_rps_id() which returns rps-object's id by it's symbol; - get_rps_symbol() which returns rps-object's symbol by it's id; - get_rps_string() which return rps-object's name by it's id; - rps_does_first_win() which implements rps-games rules; - main() which is program entry-point, contains program logic; Signed-off-by: SlavaGolubnichiy <vyacheslav.golubnichiy@gmail.com>
Added file named Makefile, used to build an executable with gcc. Scenarios, implemented in Makefile: - program (builds object-files and an executable); - RockPaperScissors.o (builds RockPaperScissors.o object file); - clean (removes object files and an executable); Signed-off-by: SlavaGolubnichiy <vyacheslav.golubnichiy@gmail.com>
Script detects following plugged hardware: - mounted devices using /dev/sd . location and type parameters - USB-devices . id, name - block devices . name, size, type, mountpoint - SCSI . name, hctl, type, vendor, model, rev, tran - bus devices . bus, device, class description - PCI . id, type, name, rev - I2C . bus, number of busses, their i2c devices Signed-off-by: SlavaGolubnichiy <vyacheslav.golubnichiy@gmail.com>
Contributor
|
Target branch should NOT be Kernel-GL-HRK:main |
Contributor
|
Rebase this commit to following commit db09a10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New branch for the task02 created;
Commit c8d01c2 is now on the task02 branch.