Files
wsdd/wsdd-init.sh
Herbert Graeber 9e6fb26a25 - Update to version 0.8
* Configuration files for firewalld added
  * Show device type and allow filtering in API's list command
  * Add option --metadata-timeout to set the timeout for the HTTP-based
    metadata exchange
  * The employed UUID is now read from /etc/{machine-id,hostid} before
    falling by back to the UUID derivation from the host name.
  * Handle addresses with zone id by ignoring the interface part
  * Do not crash with asyncio future error when non-existing interface is
    provided
- Remove some bashism from wsdd-init.sh
- Use the unmodified service files from wsdd for Leap 15.5 and below, else
  reuse ws-discovery-udp service from firewalld

OBS-URL: https://build.opensuse.org/package/show/network/wsdd?expand=0&rev=35
2024-04-01 09:44:47 +00:00

29 lines
641 B
Bash

#!/bin/sh
umask 0644
WSDD_CONFIG=/etc/sysconfig/wsdd
if test -r "${WSDD_CONFIG}"; then
. "${WSDD_CONFIG}"
fi
if [ "${WSDD_DOMAIN}" != "" ]; then
WSDD_DOMAIN="-d \"${WSDD_DOMAIN}\""
elif [ "${WSDD_WORKGROUP}" != "" ]; then
WSDD_DOMAIN="-w \"${WSDD_WORKGROUP}\""
fi
if [ "${WSDD_HOSTNAME}" != "" ]; then
WSDD_HOSTNAME="-n \"${WSDD_HOSTNAME}\""
fi
WSDD_INTERFACE_ARGS=""
if [ "${WSDD_INTERFACES}" != "" ]; then
for intf in ${WSDD_INTERFACES}; do
WSDD_INTERFACE_ARGS="${WSDD_INTERFACE_ARGS} -i \"${intf}\""
done
fi
echo "WSDD_ARGS=${WSDD_HOSTNAME} ${WSDD_DOMAIN} ${WSDD_INTERFACE_ARGS} \
${WSDD_ARGS}" >/run/wsdd/env-vars