diff options
author | Martin Väth <martin@mvath.de> | 2016-07-13 08:50:53 +0200 |
---|---|---|
committer | Martin Väth <martin@mvath.de> | 2016-07-13 08:50:53 +0200 |
commit | 540b9e4068f7cb7a78e4a00d86937585b3f4d8f0 (patch) | |
tree | 82b2e6e79b2e18f6e371ad511ef043e95dc0181e | |
parent | Version bump for Bourne shell compatibility (diff) | |
download | mv-540b9e4068f7cb7a78e4a00d86937585b3f4d8f0.tar.gz mv-540b9e4068f7cb7a78e4a00d86937585b3f4d8f0.tar.bz2 mv-540b9e4068f7cb7a78e4a00d86937585b3f4d8f0.zip |
net-dialup/martian-modem: Fix $use_syslog test in init-file
-rw-r--r-- | net-dialup/martian-modem/files/martian-modem.init.d | 4 |
1 files changed, 2 insertions, 2 deletions
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 |