diff options
author | Tuan Hoang <tmhoang@linux.ibm.com> | 2019-04-13 08:59:05 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-06-07 16:51:55 +0000 |
commit | 29cb8111788f0c11ba90757ca477bc76a824f2ac (patch) | |
tree | dee752009d9f37975a1d1080fcd7f9e17072d59f | |
parent | 077cfd673536efb4c7e9229b84cf85cf387247d3 (diff) | |
download | mkinitfs-29cb8111788f0c11ba90757ca477bc76a824f2ac.tar.bz2 mkinitfs-29cb8111788f0c11ba90757ca477bc76a824f2ac.tar.xz |
init: allow uppercase parm for dasd and qeth on s390x
-rwxr-xr-x | initramfs-init.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/initramfs-init.in b/initramfs-init.in index 0855b27..4760714 100755 --- a/initramfs-init.in +++ b/initramfs-init.in @@ -386,7 +386,7 @@ if [ -n "$KOPT_dasd" ]; then for mod in dasd_mod dasd_eckd_mod dasd_fba_mod; do modprobe $mod done - for _dasd in $(echo "$KOPT_dasd" | tr ',' ' ' ); do + for _dasd in $(echo "$KOPT_dasd" | tr ',' ' ' | tr [A-Z] [a-z]); do echo 1 > /sys/bus/ccw/devices/"${_dasd%%:*}"/online done fi @@ -395,7 +395,7 @@ if [ "${KOPT_s390x_net%%,*}" = "qeth_l2" ]; then for mod in qeth qeth_l2 qeth_l3; do modprobe $mod done - _channel="${KOPT_s390x_net#*,}" + _channel="$(echo ${KOPT_s390x_net#*,} | tr [A-Z] [a-z])" echo "$_channel" > /sys/bus/ccwgroup/drivers/qeth/group echo 1 > /sys/bus/ccwgroup/drivers/qeth/"${_channel%%,*}"/layer2 echo 1 > /sys/bus/ccwgroup/drivers/qeth/"${_channel%%,*}"/online |