#!/bin/ash -efu

. "${0%/*}"/mki-sh-functions

verbose "has started executing."

type="${MKI_PACKTYPE:?pack type required}"

case "$type" in
	tarbz2)
		MKI_TAR_COMPRESS='bzip2'
		type='tar'
		;;
	boot|isoboot|isodata|yaboot|squash|tar|cpio|data) ;;
	*) type='custom' ;;
esac
exec mki-pack-$type
