diff options
author | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-05-15 09:47:32 +0000 |
---|---|---|
committer | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-05-15 09:47:32 +0000 |
commit | 52ca90aff1b4b5edce50d69f78d76882fa2b1a44 (patch) | |
tree | bc78824fe6e58e420ad1038b7298f9033542a09e /package/radvd/files/radvd.init | |
parent | 6e428539adeb214c4f535ff76fb8994098ba81db (diff) |
Convert radvd to new packaging style
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@904 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/radvd/files/radvd.init')
-rw-r--r-- | package/radvd/files/radvd.init | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/package/radvd/files/radvd.init b/package/radvd/files/radvd.init new file mode 100644 index 0000000000..2d9e500090 --- /dev/null +++ b/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 |