diff options
author | Andrew Savchenko <bircoph@gentoo.org> | 2017-02-12 18:48:56 +0300 |
---|---|---|
committer | Andrew Savchenko <bircoph@gentoo.org> | 2017-02-12 19:03:03 +0300 |
commit | 018ddb2d12238da761b9fc8dfe2e6fd72d559474 (patch) | |
tree | 23fbb4de814e2184ab95b69568684295acba7680 /app-admin | |
parent | app-laptop/thinkfan: Remove old version. (diff) | |
download | gentoo-018ddb2d12238da761b9fc8dfe2e6fd72d559474.tar.gz gentoo-018ddb2d12238da761b9fc8dfe2e6fd72d559474.tar.bz2 gentoo-018ddb2d12238da761b9fc8dfe2e6fd72d559474.zip |
app-admin/cancd: fix non-POSIX init script
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/cancd/files/netconsole-init.d | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app-admin/cancd/files/netconsole-init.d b/app-admin/cancd/files/netconsole-init.d index ba137e9ff0cd..68ad032f2baa 100644 --- a/app-admin/cancd/files/netconsole-init.d +++ b/app-admin/cancd/files/netconsole-init.d @@ -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}" |