packages/ipv6/miredo/files/miredo-server.init
florian 0e180e68ae [package] fix miredo init scripts and bump release number (#5632)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@17197 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-08-09 11:03:08 +00:00

16 lines
254 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=50
PID_F=/var/run/miredo-server.pid
start() {
insmod ipv6 2>/dev/null
insmod tun 2>/dev/null
miredo-server -c /etc/miredo-server.conf
}
stop() {
[ -f $PID_F ] && kill $(cat $PID_F)
}