aboutsummaryrefslogtreecommitdiffstats
path: root/package/inadyn/S70inadyn
diff options
context:
space:
mode:
authorDavid Purdy <david.c.purdy@gmail.com>2012-06-19 06:37:34 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-06-23 22:41:48 +0200
commit8ac6a2f94c35353f8fbf0906e232dc568bae3212 (patch)
treea5d764c72859036545192a47802a2e941d16d202 /package/inadyn/S70inadyn
parent7944f19740497e68287b612db6a63e94e3cc1fe5 (diff)
downloadbuildroot-novena-8ac6a2f94c35353f8fbf0906e232dc568bae3212.tar.gz
buildroot-novena-8ac6a2f94c35353f8fbf0906e232dc568bae3212.zip
inadyn: add package for inadyn DDNS client-updater
inadyn is a DynamicDNS client/updater which works with dyndns.com, noip.com and many other DDNS providers. It is minimal in footprint and requirements, supports IP caching, multiple providers, multiple domain names, and a variety of other situations. [Peter: fixup whitespace / trailing spaces] Signed-off-by: Dave Purdy <david.c.purdy@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/inadyn/S70inadyn')
-rw-r--r--package/inadyn/S70inadyn35
1 files changed, 35 insertions, 0 deletions
diff --git a/package/inadyn/S70inadyn b/package/inadyn/S70inadyn
new file mode 100644
index 000000000..24d081379
--- /dev/null
+++ b/package/inadyn/S70inadyn
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# Start & stop the inadyn client
+#
+
+CONFIG=/etc/inadyn.conf
+VR_INADYN=/var/run/inadyn
+
+# check if CONFIG exists, print message & exit if it doesn't
+[ ! -f $CONFIG ] && ( echo "The config file "$CONFIG" is missing...exiting now." && exit 2 )
+
+# check if VR_INADYN exists, create it if not
+[ ! -d $VR_INADYN ] && mkdir -p $VR_INADYN
+
+case "$1" in
+ start)
+ echo "Starting inadyn."
+ start-stop-daemon -S -x /usr/sbin/inadyn
+ ;;
+ stop)
+ echo "Stopping inadyn."
+ start-stop-daemon -q -K -x /usr/sbin/inadyn
+ rm -f /var/run/inadyn/inadyn.pid
+ ;;
+ restart)
+ "$0" stop
+ "$0" start
+ ;;
+ *)
+ echo $"Usage: $0 {start|stop|restart}"
+ exit 1
+esac
+
+exit $?
+