cms/cmssetup.sh: do not echo newlines for ccw.conf
authorHarald Hoyer <harald@redhat.com>
Thu, 6 Jun 2013 10:27:19 +0000 (12:27 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 6 Jun 2013 10:27:19 +0000 (12:27 +0200)
https://bugzilla.redhat.com/show_bug.cgi?id=970982

modules.d/80cms/cmssetup.sh

index e6daa07..7d5f25c 100755 (executable)
@@ -148,9 +148,9 @@ processcmsfile()
     if [[ $NETTYPE ]]; then
        (
            echo -n $NETTYPE,$SUBCHANNELS
-           [[ $PORTNAME ]] && echo ",portname=$PORTNAME"
-           [[ $LAYER2 ]] && echo ",layer2=$LAYER"
-           [[ "$NETTYPE" = "ctc" ]] && [[ $CTCPROT ]] && echo ",protocol=$CTCPROT"
+           [[ $PORTNAME ]] && echo -n ",portname=$PORTNAME"
+           [[ $LAYER2 ]] && echo -n ",layer2=$LAYER"
+           [[ "$NETTYPE" = "ctc" ]] && [[ $CTCPROT ]] && echo -n ",protocol=$CTCPROT"
            echo
        ) >> /etc/ccw.conf