diff options
author | David Cantrell <dcantrell@redhat.com> | 2010-02-11 11:19:10 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2010-02-11 11:19:10 -1000 |
commit | dbd83717a4bc5e11a04ca012b9afc2d884c18518 (patch) | |
tree | add2f3606181ddcf5f9f47b8fdeed269404d97ab | |
parent | ce6276243f69e7854dfe978554645af1bab2faf4 (diff) | |
download | anaconda-dbd83717a4bc5e11a04ca012b9afc2d884c18518.tar.gz anaconda-dbd83717a4bc5e11a04ca012b9afc2d884c18518.tar.xz anaconda-dbd83717a4bc5e11a04ca012b9afc2d884c18518.zip |
Correct references to lcs and ctcm devices (#561816).
Followup to 84904cdfc5b6822ac62c39694b07eb323b59b2f3.
-rw-r--r-- | loader/linuxrc.s390 | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/loader/linuxrc.s390 b/loader/linuxrc.s390 index 7b20286d4..a766cbd29 100644 --- a/loader/linuxrc.s390 +++ b/loader/linuxrc.s390 @@ -602,8 +602,8 @@ function set_device_online() { echo $"Activating network device..." local sysnettype case "${NETTYPE}" in - qeth) sysnettype=${NETTYPE} ;; - lcs|ctc) sysnettype=lcs ;; + qeth|lcs) sysnettype=${NETTYPE} ;; + ctc) sysnettype=ctm ;; esac if ! [ -f /sys/devices/${sysnettype}/$SCH_R_DEVBUSID/online ]; then echo $"Sysfs path to set device online does not exist." @@ -799,8 +799,8 @@ function rollback_config() { if [ -n "$SCH_R_DEVBUSID" ]; then local sysnettype case "${NETTYPE}" in - qeth) sysnettype=${NETTYPE} ;; - lcs|ctc) sysnettype=lcs ;; + qeth|lcs) sysnettype=${NETTYPE} ;; + ctcm) sysnettype=ctcm ;; esac [ -f /sys/devices/${sysnettype}/$SCH_R_DEVBUSID/online ] && \ sysecho /sys/devices/${sysnettype}/$SCH_R_DEVBUSID/online "0" @@ -1358,9 +1358,9 @@ function handle_subchannels() { fi ;; ctc|lcs) - if [ -f /sys/devices/lcs/$SCH_R_DEVBUSID/type ]; then + if [ -f /sys/devices/$driver/$SCH_R_DEVBUSID/type ]; then local type - read type < /sys/devices/lcs/$SCH_R_DEVBUSID/type + read type < /sys/devices/$driver/$SCH_R_DEVBUSID/type [ "$type" = "CTC/A" ] && \ type="channel-to-channel adapter (CTC/A)" echo $"Detected: $type" @@ -1717,7 +1717,7 @@ function syntax_check_ctcprot() { function handle_ctcprot() { [ -n "$CTCPROT" ] || return 0 - if sysecho /sys/devices/lcs/${SCH_R_DEVBUSID}/protocol "$CTCPROT"; then + if sysecho /sys/devices/ctcm/${SCH_R_DEVBUSID}/protocol "$CTCPROT"; then return 0 fi echo $"Could not configure CTC protocol $CTCPROT for $SUBCHANNELS" |