diff --git a/config b/config index c4008fc..b459c89 100644 --- a/config +++ b/config @@ -44,6 +44,9 @@ # custom drivers #drivers="" +# exclude drivers +#drivers_exclude="" + # custom binaries #binaries="" diff --git a/tinyramfs b/tinyramfs index b859a86..78a2d05 100755 --- a/tinyramfs +++ b/tinyramfs @@ -32,7 +32,7 @@ usage: $0 [options] -c, --config config file -m, --moddir drivers directory -k, --kernel kernel version - -f, --files files directory + -F, --files files directory -d, --debug 0|1 debug mode -f, --force 0|1 overwrite existing initramfs image @@ -58,7 +58,7 @@ parse_args() { _kernel="${2:?}" shift 2 ;; - -f | --files) + -F | --files) _filesdir="${2:?}" shift 2 ;; @@ -265,6 +265,12 @@ install_driver() { driver="${driver##*net*}" driver="${driver#insmod }" + # exclude user specified drivers + [ "$drivers_exclude" ] && + for _exclude_driver in $drivers_exclude; do + driver="${driver##*${_exclude_driver}*}" + done + # check empty [ "$driver" ] || continue