[oe-commits] Roman I Khimov : htb-init: new recipe

git version control git at git.openembedded.org
Tue Mar 23 17:47:23 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 2ae318d3274a019b638473dfd607458e2aff48fb
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=2ae318d3274a019b638473dfd607458e2aff48fb

Author: Roman I Khimov <khimov at altell.ru>
Date:   Wed Oct  7 18:49:19 2009 +0400

htb-init: new recipe

Signed-off-by: Roman I Khimov <khimov at altell.ru>

---

 recipes/htb/htb-init_0.8.5.bb |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/recipes/htb/htb-init_0.8.5.bb b/recipes/htb/htb-init_0.8.5.bb
new file mode 100644
index 0000000..918f1cd
--- /dev/null
+++ b/recipes/htb/htb-init_0.8.5.bb
@@ -0,0 +1,21 @@
+DESCRIPTION = "HTB.init is a shell script derived from CBQ.init that allows for easy setup of HTB-based traffic control on Linux"
+SECTION = "init"
+PRIORITY = "optional"
+RDEPENDS = "iproute2"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/htbinit/files/HTB.init/${PV}/htb.init-v${PV};name=tar"
+SRC_URI[tar.md5sum] = "1713d9a4941120235cb0721ceba6493b"
+SRC_URI[tar.sha256sum] = "acfda369dff72b9073a8b70f2b05b1397a61a1cdb23970e5ed216d632ff33586"
+
+S="${WORKDIR}"
+
+inherit update-rc.d
+
+INITSCRIPT_NAME = "htb"
+
+do_install() {
+	install -d ${D}/etc/init.d
+	install -d ${D}/etc/sysconfig/htb
+	install -m 0755 htb.init-v${PV} ${D}/etc/init.d/htb
+	sed -r -i "s,IP=/sbin/ip,IP=/bin/ip," ${D}/etc/init.d/htb
+}
\ No newline at end of file





More information about the Openembedded-commits mailing list