MKINITRD_OPTIONS_DISKLESS="--omit-scsi-modules --omit-ide-modules --omit-raid-modules"
MKINITRD_OPTIONS_NFSROOT="--with nfs --with af_packet"
if [ -s /etc/ltsp/ltsp-client-eth-modules.list ]; then
    if /sbin/mkinitrd --help 2>&1 | egrep -q '^[[:blank:]]*--extra[[:blank:]]+.*@'; then
	MKINITRD_OPTIONS_MODULES=" --extra @/etc/ltsp/ltsp-client-eth-modules.list"
    else
	for m in `grep -v '[[:blank:]]*#' /etc/ltsp/ltsp-client-eth-modules.list`; do
	    MKINITRD_OPTIONS_MODULES="$MKINITRD_OPTIONS_MODULES --extra $m"
	done
	unset m
    fi
fi
export MKINITRD_OPTIONS="$MKINITRD_OPTIONS_DISKLESS $MKINITRD_OPTIONS_NFSROOT$MKINITRD_OPTIONS_MODULES"
[ -x /usr/share/ltsp/ltsp-client-mkinitrd ] && MKINITRD=/usr/share/ltsp/ltsp-client-mkinitrd
# unset MKINITRD_OPTIONS_DISKLESS MKINITRD_OPTIONS_NFSROOT
