Hi Sascha, Le Thu, 5 Jul 2012 09:18:39 +0200, Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> a écrit : > Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> > --- > defaultenv-2/base/bin/bootargs-root-initrd | 7 ++++++- > defaultenv-2/base/bin/bootargs-root-jffs2 | 16 +++++++++++++++- > defaultenv-2/base/bin/bootargs-root-nfs | 7 ++++++- > defaultenv-2/base/bin/bootargs-root-ubi | 13 ++++++++++++- > 4 files changed, 39 insertions(+), 4 deletions(-) > > diff --git a/defaultenv-2/base/bin/bootargs-root-initrd b/defaultenv-2/base/bin/bootargs-root-initrd > index 4c59625..7072cea 100644 > --- a/defaultenv-2/base/bin/bootargs-root-initrd > +++ b/defaultenv-2/base/bin/bootargs-root-initrd > @@ -2,9 +2,14 @@ > > rdinit="/sbin/init" > > -while getopt "i:" opt; do > +usage="$0 [OPTIONS]\n -i <rdinitpath> (/sbin/init)" > + > +while getopt "i:h" opt; do > if [ ${opt} = i ]; then > rdinit=${OPTARG} > + elif [ ${opt} = h ]; then > + echo -e "$usage" > + exit 0 > fi > done > > diff --git a/defaultenv-2/base/bin/bootargs-root-jffs2 b/defaultenv-2/base/bin/bootargs-root-jffs2 > index db036da..ac9a4bd 100644 > --- a/defaultenv-2/base/bin/bootargs-root-jffs2 > +++ b/defaultenv-2/base/bin/bootargs-root-jffs2 > @@ -1,9 +1,23 @@ > #!/bin/sh > > -while getopt "m:" opt; do > +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 > > +echo "huhu; $1" is that huhu expected here ? ;-) Eric _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox