app-admin/cancd: fix non-POSIX init script
authorAndrew Savchenko <bircoph@gentoo.org>
Sun, 12 Feb 2017 15:48:56 +0000 (18:48 +0300)
committerAndrew Savchenko <bircoph@gentoo.org>
Sun, 12 Feb 2017 16:03:03 +0000 (19:03 +0300)
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
app-admin/cancd/files/netconsole-init.d

index ba137e9ff0cddf22f4311bbe6c846df52ea8b8b1..68ad032f2baad7a49d00d1e4091893c94a34085a 100644 (file)
@@ -1,5 +1,5 @@
 #!/sbin/openrc-run
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -16,7 +16,7 @@ start() {
                if [ $ret -eq 0 ]; then
                        TGT_MAC="$(LC_ALL=C arp -an -i ${DEVICE} ${TGT_IP} |egrep -v 'incomplete|no match' | awk '{print $4}')"
                fi
-       elif [ "${TGT_MAC}" == "broadcast" ]; then
+       elif [ "${TGT_MAC}" = "broadcast" ]; then
                TGT_MAC=''
        fi
        ebegin "Starting netconsole ${SRC_IP}:${SRC_PORT}(${DEVICE}) -> ${TGT_IP}:${TGT_PORT} ${TGT_MAC}"