camera: Fix RUN command in the udev rules

This CL fixes crrev/c/2717682 where the RUN command is wrong. The
command pipe should be wrapped inside '/bin/sh -c' to work.

BUG=b:178758018, b:178060662
TEST=Simulate udev events and check cros-camera job status.

Change-Id: Ibebcb4d3db947450ad6269bc675163ed7d8de2c9
Previous-Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/2731617
Previous-Reviewed-by: Shik Chen <shik@chromium.org>
(cherry picked from commit b5ffda9e38fe0fb4c60102c9cb3f15441571201d)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/2752486
Reviewed-by: Ren-Pei Zeng <kamesan@chromium.org>
Commit-Queue: Ren-Pei Zeng <kamesan@chromium.org>
Tested-by: Ren-Pei Zeng <kamesan@chromium.org>
diff --git a/camera/hal_adapter/udev/99-camera.rules b/camera/hal_adapter/udev/99-camera.rules
index 78c3b26..d69ff30 100644
--- a/camera/hal_adapter/udev/99-camera.rules
+++ b/camera/hal_adapter/udev/99-camera.rules
@@ -4,8 +4,8 @@
 
 # New USB camera detected.
 ACTION=="add", SUBSYSTEM=="video4linux", ENV{ID_USB_DRIVER}=="uvcvideo", \
-  RUN+="/sbin/status system-services | /bin/grep -q \"start/running\" && /sbin/initctl emit --no-wait camera-device-added"
+  RUN+="/bin/sh -c '/sbin/status system-services | /bin/grep -q \"start/running\" && /sbin/initctl emit --no-wait camera-device-added'"
 
 # New MIPI camera sensor detected.
 ACTION=="add", SUBSYSTEM=="video4linux", SUBSYSTEMS=="i2c", \
-  RUN+="/sbin/status system-services | /bin/grep -q \"start/running\" && /sbin/initctl emit --no-wait camera-device-added"
+  RUN+="/bin/sh -c '/sbin/status system-services | /bin/grep -q \"start/running\" && /sbin/initctl emit --no-wait camera-device-added'"