summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2007-12-01 19:22:14 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2007-12-01 19:22:14 +0000
commit5873dabe8b465cc77cbb99ee210d7110bbf22967 (patch)
treec86423731a750e8875255cd6e7e30387d454f262 /packages
parentfda022550dc1980ce2d8e255c8699b95432543ed (diff)
update-rc.d: Be less verbose by default.
* Don't spit detailed info about links created unless passed -v. * This is to prevent initial bootup console spamming.
Diffstat (limited to 'packages')
-rw-r--r--packages/update-rc.d/files/.mtn2git_empty0
-rw-r--r--packages/update-rc.d/files/add-verbose.patch47
-rw-r--r--packages/update-rc.d/update-rc.d_0.7.bb5
3 files changed, 50 insertions, 2 deletions
diff --git a/packages/update-rc.d/files/.mtn2git_empty b/packages/update-rc.d/files/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/update-rc.d/files/.mtn2git_empty
diff --git a/packages/update-rc.d/files/add-verbose.patch b/packages/update-rc.d/files/add-verbose.patch
new file mode 100644
index 0000000000..0f068308f6
--- /dev/null
+++ b/packages/update-rc.d/files/add-verbose.patch
@@ -0,0 +1,47 @@
+--- update-rc.d/update-rc.d.org 2005-01-03 00:30:47.000000000 +0200
++++ update-rc.d/update-rc.d 2007-12-01 19:41:08.000000000 +0200
+@@ -19,6 +19,7 @@
+ notreally=0
+ force=0
+ dostart=0
++verbose=0
+
+ usage()
+ {
+@@ -28,6 +29,7 @@
+ update-rc.d [-n] [-r <root>] [-s] <basename> start|stop NN runlvl [runlvl] [...] .
+ -n: not really
+ -f: force
++ -v: verbose
+ -r: alternate root path (default is /)
+ -s: invoke start methods if appropriate to current runlevel
+ EOF
+@@ -69,7 +71,7 @@
+ lev=`echo $2 | cut -d/ -f1`
+ nn=`echo $2 | cut -d/ -f2`
+ fn="${etcd}${lev}.d/${startstop}${nn}${bn}"
+- echo " $fn -> ../init.d/$bn"
++ [ $verbose -eq 1 ] && echo " $fn -> ../init.d/$bn"
+ if [ $notreally -eq 0 ]; then
+ mkdir -p `dirname $fn`
+ ln -s ../init.d/$bn $fn
+@@ -89,7 +91,7 @@
+ exit 0
+ fi
+
+- echo " Adding system startup for $initd/$bn ..."
++ echo " Adding system startup for $initd/$bn."
+
+ for i in $startlinks; do
+ dolink S $i
+@@ -105,6 +107,10 @@
+ shift
+ continue
+ ;;
++ -v) verbose=1
++ shift
++ continue
++ ;;
+ -f) force=1
+ shift
+ continue
diff --git a/packages/update-rc.d/update-rc.d_0.7.bb b/packages/update-rc.d/update-rc.d_0.7.bb
index 8070197b82..dd370e6ff8 100644
--- a/packages/update-rc.d/update-rc.d_0.7.bb
+++ b/packages/update-rc.d/update-rc.d_0.7.bb
@@ -3,9 +3,10 @@ PRIORITY = "standard"
DESCRIPTION = "Manage symlinks in /etc/rcN.d"
LICENSE = "GPL"
S = "${WORKDIR}/update-rc.d"
-PR = "r0"
+PR = "r1"
-SRC_URI = "${HANDHELDS_CVS};module=apps/update-rc.d;tag=r0_7"
+SRC_URI = "${HANDHELDS_CVS};module=apps/update-rc.d;tag=r0_7 \
+ file://add-verbose.patch;patch=1"
PACKAGE_ARCH = "all"