From 3b529496199f62e047f5570b69f2930ee008d52b Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 15 Feb 2010 13:34:57 -0500 Subject: Move ccw_init and ccw udev rules to s390utils. (#539491) --- src/Makefile | 1 - src/ccw_init | 43 ------------------------------------------- 2 files changed, 44 deletions(-) delete mode 100755 src/ccw_init (limited to 'src') diff --git a/src/Makefile b/src/Makefile index 767fe1ce..091c8a61 100644 --- a/src/Makefile +++ b/src/Makefile @@ -32,7 +32,6 @@ install: install -m 755 rename_device $(ROOT)/lib/udev/rename_device install -m 755 console_init $(ROOT)/lib/udev/console_init install -m 755 console_check $(ROOT)/lib/udev/console_check - install -m 755 ccw_init $(ROOT)/lib/udev/ccw_init install -m 644 genhostid.1 $(ROOT)$(mandir)/man1 install -m 644 getkey.1 $(ROOT)$(mandir)/man1 install -m 644 netreport.1 $(ROOT)$(mandir)/man1 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 -- cgit v1.2.1