From 0feedfb1dc83b080c43402bab224ba4ca27ebc8b Mon Sep 17 00:00:00 2001 From: nico Date: Sun, 15 May 2005 09:47:32 +0000 Subject: Convert radvd to new packaging style git-svn-id: svn://svn.openwrt.org/openwrt/trunk@904 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- openwrt/package/radvd/files/radvd.init | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 openwrt/package/radvd/files/radvd.init (limited to 'openwrt/package/radvd/files/radvd.init') diff --git a/openwrt/package/radvd/files/radvd.init b/openwrt/package/radvd/files/radvd.init new file mode 100644 index 0000000000..2d9e500090 --- /dev/null +++ b/openwrt/package/radvd/files/radvd.init @@ -0,0 +1,24 @@ +#!/bin/sh + +case "$1" in + start) + echo 1 > /proc/sys/net/ipv6/conf/all/forwarding + mkdir -p /var/log + mkdir -p /var/run + /usr/sbin/radvd + ;; + + stop) + killall radvd + echo 0 > /proc/sys/net/ipv6/conf/all/forwarding + ;; + + restart) + $0 stop + $0 start + ;; + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 + ;; +esac -- cgit v1.2.3