diff --git a/installer/resources/i2prouter b/installer/resources/i2prouter
index fde3a0d4706dea92313a43f6b8d66417ef822940..afbc4612d43fbd88640a424883f3cdd15b278825 100644
--- a/installer/resources/i2prouter
+++ b/installer/resources/i2prouter
@@ -45,7 +45,7 @@ GETTEXT=$(which gettext > /dev/null 2>&1)
 
 # Where to install the systemd service
 SYSTEMD_SERVICE="/etc/systemd/system/${APP_NAME}.service"
-if grep -q systemd /proc/1/comm ; then
+if grep -q systemd /proc/1/comm > /dev/null 2>&1 ; then
     USE_SYSTEMD=1
 fi