Accepting request 678101 from home:jengelh:branches:Base:System

- Make sure that *ALL* scripts are either sh compatible or have
  been properly tagged as #!/bin/bash, not just the specfile.
- Drop BuildRequires: dracut, because it is not required to build
  or install the source. Installation of the dracut module files
  depends on the HAVE_DRACUT make variable only.
- Remove invisible trailing whitespaces.

OBS-URL: https://build.opensuse.org/request/show/678101
OBS-URL: https://build.opensuse.org/package/show/Base:System/s390-tools?expand=0&rev=81
This commit is contained in:
2019-04-18 06:18:45 +00:00
committed by Git OBS Bridge
parent df32ae2dc8
commit e6494dc003
16 changed files with 81 additions and 71 deletions

16
hsnc
View File

@@ -50,7 +50,7 @@ test -x $XCEC_BRIDGE_BIN || exit 5
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
#
#
# Note that starting an already running service, stopping
# or restarting a not-running service as well as the restart
# with force-reload (in case signalling is not supported) are
@@ -58,14 +58,14 @@ test -x $XCEC_BRIDGE_BIN || exit 5
#call with cleanup or not
read_config_file() {
if [ "$1" == "cleanup" ]; then
if [ "$1" = "cleanup" ]; then
file=$HSNC_CLEANUP_FILE
else
file=$HSNC_CONFIG_FILE
fi
if [ -s $file ]; then
source $file
. $file
else
echo -ne "\nCannot read $file: empty or nonexistant! "
# Means not configured:
@@ -77,8 +77,8 @@ read_config_file() {
set_osa_mode() {
# for full mode, we set up the osa as multicast router. otherwise, no
# special setup is required for the osa.
if [ "$operating_mode" == "full" ]; then
if [ "$1" == "cleanup" ]; then
if [ "$operating_mode" = "full" ]; then
if [ "$1" = "cleanup" ]; then
echo no_router > /sys/class/net/$osa_int/device/route4
else
echo multicast_router > /sys/class/net/$osa_int/device/route4
@@ -92,7 +92,7 @@ set_hsi_mode() {
# special HA setups, some more tweaking is needed, but then a handcarved
# solution should be used anyway.
for i in $hsi_int ; do
if [ "$1" == "cleanup" ]; then
if [ "$1" = "cleanup" ]; then
echo no_router > /sys/class/net/$i/device/route4
else
echo primary_connector > /sys/class/net/$i/device/route4
@@ -103,7 +103,7 @@ set_hsi_mode() {
do_start_hsnc() {
set_osa_mode
set_hsi_mode
if [ "$operating_mode" == "full" ]; then
if [ "$operating_mode" = "full" ]; then
$IP_WATCHER_BIN --check
else
$IP_WATCHER_BIN --check $osa_int
@@ -117,7 +117,7 @@ do_start_hsnc() {
# To match the LSB spec, startproc returns 0,
# even if the program it already running.
#
if [ "$operating_mode" == "full" ]; then
if [ "$operating_mode" = "full" ]; then
startproc $START_HSNC_BIN
else
startproc $START_HSNC_BIN $osa_int