diff options
author | Bill Nottingham <notting@redhat.com> | 2010-02-15 13:34:57 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2010-02-15 13:34:57 -0500 |
commit | c97f9015d5e2328df4ade826584586f658ec5907 (patch) | |
tree | 83c2f13cc184dfa68c52c84b2802dd4e903658da /src/ccw_init | |
parent | ae8fd2bc5fe2dd42ecfa848123b261ec3e6b261f (diff) | |
download | initscripts-c97f9015d5e2328df4ade826584586f658ec5907.tar initscripts-c97f9015d5e2328df4ade826584586f658ec5907.tar.gz initscripts-c97f9015d5e2328df4ade826584586f658ec5907.tar.bz2 initscripts-c97f9015d5e2328df4ade826584586f658ec5907.tar.xz initscripts-c97f9015d5e2328df4ade826584586f658ec5907.zip |
Move ccw_init and ccw udev rules to s390utils. (#539491)
Diffstat (limited to 'src/ccw_init')
-rwxr-xr-x | src/ccw_init | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/ccw_init b/src/ccw_init deleted file mode 100755 index a5009b47..00000000 --- a/src/ccw_init +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -[ -z "$DEVPATH" ] && exit 0 -[ "$SUBSYSTEM" != "ccw" ] && exit 0 - -NOLOCALE="yes" - -. /etc/sysconfig/network-scripts/network-functions - -# First, determine our channel - -CHANNEL=${DEVPATH##*/} - -CONFIG=$(get_config_by_subchannel $CHANNEL) - -if [ -n "$CONFIG" ]; then - cd /etc/sysconfig/network-scripts - source_config -fi - -# SUBCHANNELS is only set on mainframe ccwgroup devices -[ -z "$SUBCHANNELS" -o -z "$NETTYPE" ] && exit 0 -DIR="/sys/bus/ccwgroup/drivers/$NETTYPE" -SYSDIR="$DIR/${SUBCHANNELS//,*/}" -[ -e $SYSDIR ] && exit 0 -echo "$SUBCHANNELS" > $DIR/group -if [ -n "$PORTNAME" ]; then - if [ "$NETTYPE" = "lcs" ]; then - [ -e $SYSDIR/portno ] && echo "$PORTNAME" > $SYSDIR/portno - else - [ -e $SYSDIR/portname ] && echo "$PORTNAME" > $SYSDIR/portname - fi -fi -if [ "$NETTYPE" = "ctc" -a -n "$CTCPROT" ]; then - echo "$CTCPROT" > $SYSDIR/protocol -fi -if [ -n "$OPTIONS" ]; then - - for i in $OPTIONS; do - echo "${i//*=/}" > "$SYSDIR/${i//=*/}" - done -fi -[ -e $SYSDIR/online ] && echo 1 > $SYSDIR/online |