summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts/services/ncid-server/run
blob: 126909deef44b30f707b3ea05fe1fef2ba02f551 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
#
# Start/stop the ncid-client 
#
. /etc/rc.conf
. /etc/rc.d/functions
. /etc/systemconfig
stat_runit "Starting caller id server (ncid)"
exec 2>&1
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
fi