summaryrefslogtreecommitdiff
path: root/package/owsip/files/telephony.init
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2012-10-11 10:05:13 +0000
committerJohn Crispin <john@openwrt.org>2012-10-11 10:05:13 +0000
commita95775e4b2a9831decbc7f37a2e47985ea2ac222 (patch)
tree2a188f047a7da8e3868f734b26756551c9f7ec8e /package/owsip/files/telephony.init
parent06218a992e0ffa234d8c180f9a24415b2fb5fe62 (diff)
downloadmtk-20170518-a95775e4b2a9831decbc7f37a2e47985ea2ac222.zip
mtk-20170518-a95775e4b2a9831decbc7f37a2e47985ea2ac222.tar.gz
mtk-20170518-a95775e4b2a9831decbc7f37a2e47985ea2ac222.tar.bz2
drop unmaintained packages
SVN-Revision: 33723
Diffstat (limited to 'package/owsip/files/telephony.init')
-rw-r--r--package/owsip/files/telephony.init33
1 files changed, 0 insertions, 33 deletions
diff --git a/package/owsip/files/telephony.init b/package/owsip/files/telephony.init
deleted file mode 100644
index 90909e6..0000000
--- a/package/owsip/files/telephony.init
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/sh /etc/rc.common
-START=80
-
-SERVICE_WRITE_PID=1
-SERVICE_DAEMONIZE=1
-SERVICE_PID_FILE=/var/run/owsip.pid
-
-. /lib/functions.sh
-
-relay_set () {
- local cfg="$1"
- local gpio value
-
- config_get gpio "$cfg" gpio
- config_get value "$cfg" value
- [ -n "gpio" ] || return 0
- [ ! -f "/sys/class/gpio/gpio$gpio/direction" ] &&
- echo "$gpio" > /sys/class/gpio/export
- [ -f "/sys/class/gpio/gpio$gpio/direction" ] && {
- echo "out" > /sys/class/gpio/gpio$gpio/direction
- echo "$value" > /sys/class/gpio/gpio$gpio/value
- }
-}
-
-start() {
- config_load telephony
- config_foreach relay_set relay
- service_start /usr/bin/owsip_ua
-}
-
-stop() {
- service_stop /usr/bin/owsip_ua
-}