2013-05-24 10:23:44 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#default for the beagleboard-xM
|
|
|
|
CONSOLE=tty02
|
|
|
|
#verbosity
|
|
|
|
VERBOSE=3
|
2013-08-27 14:23:34 +02:00
|
|
|
HZ=1000
|
2013-05-24 10:23:44 +02:00
|
|
|
while getopts "c:v:?" c
|
|
|
|
do
|
|
|
|
case "$c" in
|
|
|
|
\?)
|
|
|
|
echo "Usage: $0 [-c consoletty] [-v level]" >&2
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
c)
|
|
|
|
# genrate netbooting uEnv.txt
|
|
|
|
CONSOLE=$OPTARG
|
|
|
|
;;
|
|
|
|
v)
|
|
|
|
# genrate netbooting uEnv.txt
|
|
|
|
VERBOSE=$OPTARG
|
|
|
|
;;
|
2013-08-27 14:23:34 +02:00
|
|
|
h)
|
|
|
|
# system hz
|
|
|
|
HZ=$OPTARG
|
|
|
|
;;
|
2013-05-24 10:23:44 +02:00
|
|
|
esac
|
|
|
|
done
|
|
|
|
|
|
|
|
|
2013-09-26 13:42:31 +02:00
|
|
|
echo console=$CONSOLE rootdevname=c0d0p1 verbose=$VERBOSE hz=$HZ
|