diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2012-04-13 23:01:42 +0300 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2012-04-16 13:45:59 -0500 |
commit | 4943ddcb1c96aed14617c97ba42a658a2c6cecf5 (patch) | |
tree | 50ba6cea8dc25dc186e920c4a23e13ae582de05d | |
parent | be5de328e9aa4d35a8222e1c4c2358bb9a07449c (diff) |
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
-rw-r--r-- | 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 a6136a30..a167ed7e 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', |