summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Beisert <j.beisert@pengutronix.de>2009-05-28 09:29:37 +0000
committerJuergen Beisert <j.beisert@pengutronix.de>2009-05-28 09:29:37 +0000
commit2752d6579a894a1c1735e25d5f28f9d4d8c2a479 (patch)
tree25d8dbac00f803bedcb71b566fba8010d17b9652
parentc04d207404831bb80a6e0b2344f28681db52699c (diff)
downloadptxdist-2752d6579a894a1c1735e25d5f28f9d4d8c2a479.tar.gz
ptxdist-2752d6579a894a1c1735e25d5f28f9d4d8c2a479.tar.xz
* networking startscript: remove the 'cat' command entirely
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@10588 33e552b5-05e3-0310-8538-816dae2090ed
-rwxr-xr-xgeneric/etc/init.d/networking2
-rw-r--r--rules/initmethod-bbinit.in8
2 files changed, 4 insertions, 6 deletions
diff --git a/generic/etc/init.d/networking b/generic/etc/init.d/networking
index 9f5e26fc..4caf366d 100755
--- a/generic/etc/init.d/networking
+++ b/generic/etc/init.d/networking
@@ -2,7 +2,7 @@
echo "starting network interfaces..."
-cat /proc/cmdline | grep nfsroot > /dev/null
+grep "nfsroot" /proc/cmdline > /dev/null
if [ $? != 0 ]; then
ifup -a
diff --git a/rules/initmethod-bbinit.in b/rules/initmethod-bbinit.in
index d3c0a57d..56ea5dc5 100644
--- a/rules/initmethod-bbinit.in
+++ b/rules/initmethod-bbinit.in
@@ -38,14 +38,12 @@ config INITMETHOD_BBINIT_ETC_INITD_NETWORKING
prompt "install /etc/init.d/networking"
select BUSYBOX_IFUPDOWN if BUSYBOX
select BUSYBOX_IFCONFIG if BUSYBOX
- select BUSYBOX_CAT if BUSYBOX
select BUSYBOX_FEATURE_IFUPDOWN_IP if BUSYBOX
help
When enabled, this option installs the generic /etc/init.d/networking
- file. This script starts your network interfaces by calling ifup -a.
- To run this script you will need the shell commands 'cat', 'grep' and
- 'ifconfig'
-
+ file. This script starts your network interfaces by calling 'ifup -a'.
+ To run this script you will need the shell commands 'grep',
+ 'ifup'/'ifdown' and 'ifconfig'
menu "service startup configuration "