We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could you help me to replace that bash oneliner with golang / sift? To HW detection and load needed modules during boot / initialization.
grep -h MODALIAS /sys/bus/*/devices/*/uevent | cut -d= -f2 | xargs /sbin/modprobe -abq 2> /dev/null
I'm new with golang and search a replacement
The modprobe part can be ignored.
The text was updated successfully, but these errors were encountered:
sift --no-filename --no-color MODALIAS /sys/bus/*/devices/*/uevent is the equivalent extraction
sift --no-filename --no-color MODALIAS /sys/bus/*/devices/*/uevent
Sorry, something went wrong.
Thank's! Seems to be easy to include the cut command in sift.
sift '(MODALIAS=)(.*)' --no-filename --no-color --replace '$2' /sys/bus/*/devices/*/uevent
But how to remove empty lines?
No branches or pull requests
Could you help me to replace that bash oneliner with golang / sift?
To HW detection and load needed modules during boot / initialization.
I'm new with golang and search a replacement
The modprobe part can be ignored.
The text was updated successfully, but these errors were encountered: