From: Michael Tremer Date: Thu, 11 Jan 2024 15:05:29 +0000 (+0100) Subject: wsdd: Reindent initscript X-Git-Tag: v2.29-core185~145^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b95afd6aca51723390d4cc14a9607e9333bca4b4;p=ipfire-2.x.git wsdd: Reindent initscript No spaces. Just tabs. Signed-off-by: Daniel Weismüller --- diff --git a/src/initscripts/packages/wsdd b/src/initscripts/packages/wsdd index 274d7cd5ab..77d0e59e5d 100644 --- a/src/initscripts/packages/wsdd +++ b/src/initscripts/packages/wsdd @@ -30,28 +30,31 @@ mkdir -p /var/run/wsdd PIDFILE="/var/run/wsdd.pid" INTERFACES="-i ${GREEN_DEV}" - if [ -n "${BLUE_DEV}" ]; then - INTERFACES="${INTERFACES} -i ${BLUE_DEV}" - fi +if [ -n "${BLUE_DEV}" ]; then + INTERFACES="${INTERFACES} -i ${BLUE_DEV}" +fi WSDD_WORKGROUP="-w $(/usr/bin/testparm -s --parameter-name workgroup 2>/dev/null)" WSDD_USER="-u wsdd:wsdd" WSDD_CHROOT="-c /var/run/wsdd" case "$1" in - start) - boot_mesg "Starting wsdd daemon..." - loadproc -b -p "${PIDFILE}" /usr/bin/wsdd -4 ${WSDD_USER} ${INTERFACES} ${WSDD_WORKGROUP} ${WSDD_CHROOT} - ;; - stop) - boot_mesg "Stopping wsdd daemon..." - killproc -p "${PIDFILE}" /usr/bin/wsdd - ;; - status) + start) + boot_mesg "Starting wsdd daemon..." + loadproc -b -p "${PIDFILE}" /usr/bin/wsdd -4 ${WSDD_USER} ${INTERFACES} ${WSDD_WORKGROUP} ${WSDD_CHROOT} + ;; + + stop) + boot_mesg "Stopping wsdd daemon..." + killproc -p "${PIDFILE}" /usr/bin/wsdd + ;; + + status) statusproc /usr/bin/wsdd - ;; - *) - echo "Usage: $0 (start|stop|status)" - exit 1 - ;; + ;; + + *) + echo "Usage: $0 (start|stop|status)" + exit 1 + ;; esac