include $(TOPDIR)/rules.mk
PKG_NAME:=6relayd
-PKG_VERSION:=2013-01-21
+PKG_VERSION:=2013-01-21.1
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
#!/bin/sh /etc/rc.common
# Copyright (c) 2011-2012 OpenWrt.org
START=80
-. /lib/functions/network.sh
-. /lib/functions/service.sh
start_6relayd() {
local cfg="$1"
}
restart_affected() {
+ . /lib/functions/service.sh
+ . /lib/functions/network.sh
local net="$1"
config_load 6relayd
config_foreach restart_affected_6relayd server "$net"
}
stop() {
+ . /lib/functions/service.sh
for pid in /var/run/6relayd-*.pid; do
SERVICE_PID_FILE="$pid"
service_stop /usr/sbin/6relayd
}
start() {
+ . /lib/functions/service.sh
+ . /lib/functions/network.sh
config_load 6relayd
config_foreach start_6relayd server
config_foreach start_6relayd relay relay