#!/bin/bash

check()
{
	test -d "$srcmods/kgraft"
}

install()
{
	inst_hook pre-pivot 99 "$moddir/kgraft-patch.sh"
	inst_binary find
}

installkernel()
{
	# Cannot use instmods =kgraft, because this syntax only
	# works for subdirectories of subdirectories of $srcmods
	find "$srcmods/kgraft" -type f -name '*.ko' -printf 'kgraft/%P\n' | \
		hostonly='' instmods
}

