From 4943ddcb1c96aed14617c97ba42a658a2c6cecf5 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 13 Apr 2012 23:01:42 +0300 Subject: init.d/procfs: posix compatibility fix 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 '='. X-Gentoo-Bug: 412237 x-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=412237 --- init.d/procfs.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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', -- cgit v1.2.3