blob: ef891041daf895c04276048caa21efb7491fbd20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
ubiroot=root
while getopt "m:r:" opt; do
if [ ${opt} = r ]; then
ubiroot=${OPTARG}
elif [ ${opt} = m ]; then
mtd=${OPTARG}
fi
done
global.linux.bootargs.root="root=ubi0:$ubiroot ubi.mtd=$mtd rootfstype=ubifs"
|