Making the init interactive shells handle well console kernel parameters

with extra parameters, like console=ttyS0,115200.


svn path=/nixos/trunk/; revision=33458
This commit is contained in:
Lluís Batlle i Rossell 2012-03-28 19:58:44 +00:00
parent 1d3c7e2a2d
commit f4883572d8
2 changed files with 6 additions and 2 deletions

View File

@ -31,7 +31,9 @@ EOF
case $o in
console=*)
set -- $(IFS==; echo $o)
console=$2
params=$2
set -- $(IFS=,; echo $params)
console=$1
;;
esac
done

View File

@ -172,7 +172,9 @@ if [ -n "$debug2" ]; then
case $o in
console=*)
set -- $(IFS==; echo $o)
console=$2
params=$2
set -- $(IFS=,; echo $params)
console=$1
;;
esac
done