Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
b3984566
Commit
b3984566
authored
Jul 27, 2013
by
Henrik Nordstrom
Browse files
usb-boot: Check number of arguments before eating them
parent
e5736fd0
Changes
1
Hide whitespace changes
Inline
Side-by-side
usb-boot
View file @
b3984566
...
...
@@ -14,9 +14,15 @@ case "$1" in
*
.scr
)
bootscr
=
"
$1
"
;
shift
;;
esac
kernel
=
$1
;
shift
||
true
scriptbin
=
$1
;
shift
||
true
initramfs
=
$1
;
shift
||
true
if
[
$#
-ge
1
]
;
then
kernel
=
$1
;
shift
||
true
fi
if
[
$#
-ge
1
]
;
then
scriptbin
=
$1
;
shift
||
true
fi
if
[
$#
-ge
1
]
;
then
initramfs
=
$1
;
shift
||
true
fi
fel
()
{
echo
fel
"
$@
"
$top
/fel
$@
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment