Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: mod-sata.sh
- ===================================================================
- --- mod-sata.sh (revision 12142)
- +++ mod-sata.sh (working copy)
- @@ -51,10 +51,18 @@
- # 0107 - SAS
- local m modules=$(find_modules_by_class 0106)
- - # FIXME: how to handle if multiple modules returned?
- - # i.e two modules can do same id
- - # currently we load all of them...
- + # sort modules that ones who depend on libata are first
- + # this is best we could think of now :)
- + local left right
- for m in $modules; do
- + if NEW_MODINFO=1 modinfo -k $kernel -F depends $m | grep -q libata; then
- + left="$left $m"
- + else
- + right="$right $m"
- + fi
- + done
- +
- + for m in $left $right; do
- find_module $m
- done
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement