Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 309157 Details for
Bug 412237
=sys-apps/openrc-0.9.9.3 /etc/init.d/procfs: '[: 308: unexpected operator' (/bin/sh -> dash)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
0001-init.d-procfs-work-nicer-in-dash.patch
0001-init.d-procfs-work-nicer-in-dash.patch (text/plain), 1.00 KB, created by
Sergei Trofimovich (RETIRED)
on 2012-04-16 17:29:21 UTC
(
hide
)
Description:
0001-init.d-procfs-work-nicer-in-dash.patch
Filename:
MIME Type:
Creator:
Sergei Trofimovich (RETIRED)
Created:
2012-04-16 17:29:21 UTC
Size:
1.00 KB
patch
obsolete
>From ca1a615b8d863538b8127721c47d7bb842466f01 Mon Sep 17 00:00:00 2001 >From: Sergei Trofimovich <slyfox@gentoo.org> >Date: Fri, 13 Apr 2012 23:01:42 +0300 >Subject: [PATCH] init.d/procfs: work nicer in dash > >I've noticed in at boot: > # /etc/init.d/procfs restart > procfs | * WARNING: you are stopping a boot service > procfs |[: 308: unexpected operator > >Which calls > $ /bin/dash -c '[ "$RC_SYS" == "OPENVZ" ] && echo "ovz" || echo "nope"' > [: 1: unexpected operator > nope > >Fixed by using '='. > >Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> >--- > init.d/procfs.in | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/init.d/procfs.in b/init.d/procfs.in >index a6136a3..a167ed7 100644 >--- a/init.d/procfs.in >+++ b/init.d/procfs.in >@@ -41,7 +41,7 @@ start() > fi > fi > >- [ "$RC_SYS" == "OPENVZ" ] && return 0 >+ [ "$RC_SYS" = "OPENVZ" ] && return 0 > > # Check what USB fs the kernel support. Currently > # 2.5+ kernels, and later 2.4 kernels have 'usbfs', >-- >1.7.8.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 412237
: 309157