From 540b9e4068f7cb7a78e4a00d86937585b3f4d8f0 Mon Sep 17 00:00:00 2001 From: Martin Väth Date: Wed, 13 Jul 2016 08:50:53 +0200 Subject: net-dialup/martian-modem: Fix $use_syslog test in init-file --- net-dialup/martian-modem/files/martian-modem.init.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net-dialup') diff --git a/net-dialup/martian-modem/files/martian-modem.init.d b/net-dialup/martian-modem/files/martian-modem.init.d index 540d14c5..70450ee9 100644 --- a/net-dialup/martian-modem/files/martian-modem.init.d +++ b/net-dialup/martian-modem/files/martian-modem.init.d @@ -13,12 +13,12 @@ pidfile=/var/run/${SVCNAME}.pid depend() { need localmount - [ "${use_syslog}" = "YES" ] && use syslog + yesno "${use_syslog}" && use syslog } start() { + local modem if [ -e /proc/modules ] ; then - local modem= for modem in /dev/modem /dev/ttySM[0-9]* ; do [ -e "${modem}" ] && break done -- cgit v1.2.3-65-gdbad