Commit 7f426b15 authored by Martin Peres's avatar Martin Peres
Browse files

initscript/args: store/restore IFS after moddifying it

parent dd6ef1b1
......@@ -53,7 +53,7 @@ function parse_cmdline {
# Go through the list of options in the commandline, but remove the quotes
# around multi-words arguments. Awk seems to be doing that best.
IFS=$'\n'
OLDIFS=$IFS IFS=$'\n'
for param in $(echo "$cmdline" | awk -F\" 'BEGIN { OFS = "" } {
for (i = 1; i <= NF; i += 2) {
gsub(/[ \t]+/, "\n", $i)
......@@ -73,6 +73,7 @@ function parse_cmdline {
;;
esac
done
IFS=$OLDIFS
# TODO: add a parameter to download a volume with firmwares and modules
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment