Add imsnif and link it against uclibcxx (#2128)
[packages.git] / net / imsnif / files / imsnif
diff --git a/net/imsnif/files/imsnif b/net/imsnif/files/imsnif
new file mode 100755 (executable)
index 0000000..12c2f28
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh /etc/rc.common
+#Copyright (C) 2007 RoadRunner.cx
+START=85
+
+start() {
+    [ -f /etc/imsnif.conf ] && /usr/bin/imsnif || {
+       cat <<EOF
+You have not created configuration file.
+Store your configuration as /etc/imsnif.conf
+EOF
+    }
+}
+
+stop() {
+    [ `ps ax|grep -v grep|grep -c imsnif` != "0" ] && killall imsnif
+}
\ No newline at end of file