#!/bin/sh

rdinit="/sbin/init"

usage="$0 [OPTIONS]\n -i <rdinitpath> (/sbin/init)"

while getopt "i:h" opt; do
	if [ ${opt} = i ]; then
		rdinit=${OPTARG}
	elif [ ${opt} = h ]; then
		echo -e "$usage"
		exit 0
	fi
done

global.linux.bootargs.root="root=/dev/ram0 rdinit=${rdinit}"
