From b8dba27cc7badb8fe8a4624b07baafa77d0157da Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Fri, 5 Oct 2012 11:32:08 -0500
Subject: runit-scripts: ncid-server   add support for NetcallerID  also set
 speed to 4800 for all modem devices.

---
 abs/core/runit-scripts/PKGBUILD                              | 2 +-
 abs/core/runit-scripts/runitscripts/services/ncid-server/run | 9 +++++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD
index d8acb9f..581bf06 100755
--- a/abs/core/runit-scripts/PKGBUILD
+++ b/abs/core/runit-scripts/PKGBUILD
@@ -1,6 +1,6 @@
 pkgname=runit-scripts
 pkgver=2.1.1
-pkgrel=75
+pkgrel=77
 pkgdesc="collection of startup scripts for runit"
 url="http://smarden.org/runit/"
 license="BSD"
diff --git a/abs/core/runit-scripts/runitscripts/services/ncid-server/run b/abs/core/runit-scripts/runitscripts/services/ncid-server/run
index 126909d..337b028 100644
--- a/abs/core/runit-scripts/runitscripts/services/ncid-server/run
+++ b/abs/core/runit-scripts/runitscripts/services/ncid-server/run
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# Start/stop the ncid-client 
+# Start/stop the ncid-server
 #
 . /etc/rc.conf
 . /etc/rc.d/functions
@@ -11,5 +11,10 @@ if [ -f /etc/ncid/ncidd-user.conf ]
 then
     exec /usr/sbin/ncidd -D -C /etc/ncid/ncidd-user.conf 
 else
-    exec /usr/sbin/ncidd -D -t /dev/$nciddSerialPort
+    if [ x$nciddDeviceNetCallerID = "x1" ]
+    then
+        exec /usr/sbin/ncidd -D -t /dev/$nciddSerialPort --nomodem 1 -S 4800
+    else
+        exec /usr/sbin/ncidd -D -t /dev/$nciddSerialPort -S 4800
+    fi
 fi
-- 
cgit v0.12