Bashify drivers_dir check

master
Victor Lowther 2009-08-14 22:31:04 -05:00
parent ded38dbfbd
commit 0b90cfaa9f
1 changed files with 1 additions and 1 deletions

2
dracut
View File

@ -136,7 +136,7 @@ esac
[[ $1 ]] && outfile=$(readlink -f $1) || outfile="/boot/initrd-$kernel.img" [[ $1 ]] && outfile=$(readlink -f $1) || outfile="/boot/initrd-$kernel.img"


srcmods="/lib/modules/$kernel/" srcmods="/lib/modules/$kernel/"
[ -n "$drivers_dir" ] && srcmods="$drivers_dir" [[ $drivers_dir ]] && srcmods="$drivers_dir"
export srcmods export srcmods


if [[ -f $outfile && ! $force ]]; then if [[ -f $outfile && ! $force ]]; then