You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
442 B
16 lines
442 B
#!/bin/bash |
|
# Include wired net drivers, excluding wireless |
|
|
|
net_module_test() { |
|
local net_drivers='eth_type_trans|register_virtio_device' |
|
local unwanted_drivers='/(wireless|isdn|uwb)/' |
|
nm -uPA "$1" | egrep -q $net_drivers && \ |
|
nm -uPA "$1" | egrep -qv 'iw_handler_get_spy' && \ |
|
[[ ! $1 =~ $unwanted_drivers ]] |
|
} |
|
|
|
instmods $(filter_kernel_modules net_module_test) |
|
|
|
instmods ecb arc4 |
|
# bridge modules |
|
instmods bridge stp llc
|
|
|