0c4ed19f02
I've managed to update Snort to version 2.9.2.2. I did not want to split this patch even if it has so many deltas - there are many deletions of unused patches. Also there is a configuration file that has almost the same functionality as the 2.8.4.1 one. The reason I've not written a patch for update to 2.9.3 is to preserve compatibility with snortsam which has not patch for 2.9.3 yet. If this patch becomes accepted then patch http://patchwork.openwrt.org/patch/2381/ becomes obsolete, because it depends on 2.8.4.1. Next patch (3/3) introduces support for Snortsam package (Snortsam is snort version independent, just needs snort to be patched with proper patch). Signed-off-by: Jiri Slachta <jiri@slachta.eu> git-svn-id: svn://svn.openwrt.org/openwrt/packages@33169 3c298f89-4303-0410-b956-a3cf2f4a3e73
21 lines
398 B
Bash
21 lines
398 B
Bash
#!/bin/sh /etc/rc.common
|
|
# Copyright (C) 2012 OpenWrt.org
|
|
|
|
START=99
|
|
APP=snort
|
|
BIN_FILE="/usr/bin/"$APP
|
|
PID_FILE="/var/run/"$APP"_"$INTERFACE".pid"
|
|
OPTIONS=
|
|
DEFAULT=/etc/default/snort
|
|
LOG_D=/var/log/snort
|
|
|
|
start() {
|
|
[ -d $LOG_D ] || mkdir -p $LOG_D
|
|
start-stop-daemon -S -x $BIN_FILE -p $PID_FILE -b -m -- $OPTIONS
|
|
}
|
|
|
|
stop() {
|
|
start-stop-daemon -K -x $BIN_FILE -p $PID_FILE -q
|
|
rm -rf $PID_FILE
|
|
}
|