Merge "Use [[ for =~ matches"
This commit is contained in:
commit
39d84d2059
@ -39,7 +39,7 @@ fi
|
|||||||
select_boot_kernel_initrd $TARGET_ROOT
|
select_boot_kernel_initrd $TARGET_ROOT
|
||||||
|
|
||||||
# Serial console on Power is hvc0
|
# Serial console on Power is hvc0
|
||||||
if [ "powerpc ppc64 ppc64le" =~ "$ARCH" ] ; then
|
if [[ "powerpc ppc64 ppc64le" =~ "$ARCH" ]] ; then
|
||||||
SERIAL_CONSOLE="hvc0"
|
SERIAL_CONSOLE="hvc0"
|
||||||
else
|
else
|
||||||
SERIAL_CONSOLE="ttyS0,115200"
|
SERIAL_CONSOLE="ttyS0,115200"
|
||||||
|
@ -147,7 +147,7 @@ function install_grub2 {
|
|||||||
echo 'GRUB_GFXPAYLOAD_LINUX=text' >>/etc/default/grub
|
echo 'GRUB_GFXPAYLOAD_LINUX=text' >>/etc/default/grub
|
||||||
|
|
||||||
# Serial console on Power is hvc0
|
# Serial console on Power is hvc0
|
||||||
if [ "powerpc ppc64 ppc64le" =~ "$ARCH" ] ; then
|
if [[ "powerpc ppc64 ppc64le" =~ "$ARCH" ]]; then
|
||||||
SERIAL_CONSOLE="hvc0"
|
SERIAL_CONSOLE="hvc0"
|
||||||
else
|
else
|
||||||
SERIAL_CONSOLE="ttyS0,115200"
|
SERIAL_CONSOLE="ttyS0,115200"
|
||||||
|
Loading…
Reference in New Issue
Block a user