backport linemode changes from sle12 (bnc #906345, fate #313155, fate #313156)
Merge pull request #40 from openSUSE/bnc_906345

backport linemode changes from sle12 (bnc #906345, fate #313155, fate #3...