From 5d079b210d164351495a00386cfc15eb2c3f3115 Mon Sep 17 00:00:00 2001 From: illiliti Date: Wed, 26 Feb 2020 20:22:30 +0300 Subject: [PATCH] move moddir check to caller side --- tinyramfs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tinyramfs b/tinyramfs index f76f21f..137cfff 100755 --- a/tinyramfs +++ b/tinyramfs @@ -259,9 +259,6 @@ install_luks() { } install_driver() { - # check monolithic kernel(builtin drivers) - [ -d "${moddir}/${kernel}" ] || return - driver="$1" driver="${driver##*/}" driver="${driver%%.*}" @@ -485,9 +482,9 @@ create_structure create_symlinks install_requirements -if [ "$hostonly" = 1 ]; then +if [ -d "$moddir" ] && [ "$hostonly" = 1 ]; then install_hostonly_drivers -else +elif [ -d "$moddir" ]; then install_all_drivers fi