summaryrefslogtreecommitdiffstats
path: root/defaultenv-2/base/bin/bootargs-root-jffs2
blob: a8eb5e7bb83f0b18022496cae539c51d8ef76b1b (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.dyn.root="root=$mtd rootfstype=jffs2"