summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts/services/ncid-server/run
blob: 337b028d845855034998e133da29962d9a1b7feb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
#
# Start/stop the ncid-server
#
. /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
    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