Add sysctl applet to slugos
authorOyvind Repvik <nail@nslu2-linux.org>
Sat, 25 Feb 2006 09:17:02 +0000 (09:17 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Sat, 25 Feb 2006 09:17:02 +0000 (09:17 +0000)
packages/busybox/busybox-1.01/slugos/defconfig
packages/busybox/busybox-1.01/slugos/sysctl.conf [new file with mode: 0644]
packages/busybox/busybox_1.01.bb

index 7eca339..55aa5f3 100644 (file)
@@ -353,7 +353,7 @@ CONFIG_RENICE=y
 CONFIG_TOP=y
 FEATURE_CPU_USAGE_PERCENTAGE=y
 CONFIG_UPTIME=y
-# CONFIG_SYSCTL is not set
+CONFIG_SYSCTL=y
 
 #
 # Another Bourne-like Shell
diff --git a/packages/busybox/busybox-1.01/slugos/sysctl.conf b/packages/busybox/busybox-1.01/slugos/sysctl.conf
new file mode 100644 (file)
index 0000000..9f913de
--- /dev/null
@@ -0,0 +1,29 @@
+#
+# /etc/sysctl.conf - Configuration file for setting system variables
+# See sysctl.conf (5) for information.
+#
+
+#kernel.domainname = example.com
+
+# This flag allows the machine to respond to broadcast pings. 
+# Very useful on embedded machines 
+net/ipv4/icmp_echo_ignore_broadcasts=0
+
+# Uncomment the following to stop low-level messages on console
+#kernel/printk = 4 4 1 7
+
+##############################################################3
+# Functions previously found in netbase
+#
+
+# Uncomment the next line to enable Spoof protection (reverse-path filter)
+#net/ipv4/conf/all/rp_filter=1
+
+# Uncomment the next line to enable TCP/IP SYN cookies
+#net/ipv4/tcp_syncookies=1
+
+# Uncomment the next line to enable packet forwarding for IPv4
+#net/ipv4/ip_forward=1
+
+# Uncomment the next line to enable packet forwarding for IPv6
+#net/ipv6/ip_forward=1
index 3173294..693ead5 100644 (file)
@@ -10,7 +10,7 @@ HOMEPAGE = "http://www.busybox.net"
 LICENSE = "GPL"
 SECTION = "base"
 PRIORITY = "required"
-PR = "r7"
+PR = "r8"
 
 SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
           file://udhcppidfile.patch;patch=1 \
@@ -39,6 +39,7 @@ SRC_URI = "http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
           file://syslog.conf \
           file://mount.busybox \
           file://umount.busybox"
+SRC_URI_slugos += " file://sysctl.conf "
 
 S = "${WORKDIR}/busybox-${PV}"
 
@@ -130,6 +131,11 @@ do_install () {
        install -m 0644 ${S}/busybox.links ${D}${sysconfdir}
 }
 
+do_install_append_slugos()
+{
+       install -m 0644 ${WORKDIR}/sysctl.conf ${D}${sysconfdir}
+}
+
 pkg_postinst_${PN} () {
        # If we are not making an image we create links for the utilities that doesn't exist
        # so the update-alternatives script will get the utilities it needs