From f6bac8a08e3fbb28df6d5601bb3147edb1662f7f Mon Sep 17 00:00:00 2001 From: kytv Date: Tue, 30 Oct 2012 19:41:35 +0000 Subject: [PATCH] redirect output to /dev/null (in case /proc/1/comm doesn't exist) --- installer/resources/i2prouter | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/resources/i2prouter b/installer/resources/i2prouter index fde3a0d47..afbc4612d 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