summaryrefslogtreecommitdiffstats
path: root/defaultenv-2/base/bin/bootargs-root-jffs2
blob: 74d59afe393acf78a5f438b38890175764b71e53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

mtd=

usage="$0 [OPTIONS]\n -m <mtd>"

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

if [ -z "$mtd" ]; then
	echo -e "$usage"
	exit 1
fi

global.linux.bootargs.root="root=$mtd rootfstype=jffs2"