]> code.ossystems Code Review - openembedded-core.git/commitdiff
bluez5: cosmetic fixes to bluetooth bootscript
authorJavier Viguera <javier.viguera@digi.com>
Tue, 18 Jul 2017 16:32:02 +0000 (18:32 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 Aug 2017 10:13:52 +0000 (11:13 +0100)
Fix booting messages wrapped over two different lines:

    Starting bluetooth
    bluetoothd

    Stopping bluetooth
    /usr/libexec/bluetooth/bluetoothd

Also reworked whitespace (removed some empty lines).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-connectivity/bluez5/bluez5/init

index 489e9b9eba33bdc749e35fa01884444c7511ddc1..d7972f2d950bdc81aed298bc469208b558f5c8dd 100644 (file)
@@ -21,25 +21,22 @@ set -e
 
 case $1 in
   start)
-       echo "Starting $DESC"
-
+       echo -n "Starting $DESC: "
        if test "$BLUETOOTH_ENABLED" = 0; then
-               echo "disabled. see /etc/default/bluetooth"
+               echo "disabled (see /etc/default/bluetooth)."
                exit 0
        fi
-
        start-stop-daemon --start --background $SSD_OPTIONS
-       echo "${DAEMON##*/}"
-
+       echo "${DAEMON##*/}."
   ;;
   stop)
-       echo "Stopping $DESC"
+       echo -n "Stopping $DESC: "
        if test "$BLUETOOTH_ENABLED" = 0; then
-               echo "disabled."
+               echo "disabled (see /etc/default/bluetooth)."
                exit 0
        fi
        start-stop-daemon --stop $SSD_OPTIONS
-       echo "${DAEMON}"
+       echo "${DAEMON##*/}."
   ;;
   restart|force-reload)
        $0 stop