blob: df8750e46deedb4a197db5a5eb08666d95f7a68b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/sh
usage="$0 [OPTIONS]\n -p <partition>\n -t <fstype>"
while getopt "p:t:h" opt; do
if [ ${opt} = p ]; then
part=${OPTARG}
elif [ ${opt} = t ]; then
fstype=${OPTARG}
elif [ ${opt} = h ]; then
echo -e "$usage"
exit 0
fi
done
if [ -z "${part}" ]; then
echo "$0: no partition given"
exit 1
fi
if [ -z "${fstype}" ]; then
echo "$0: no filesystem type given"
exit 1
fi
global.linux.bootargs.root="root=/dev/$part rootfstype=$fstype rootwait"
|