From 88a86dedcea9e9bf926b1e02158bf0df09ebfe7e Mon Sep 17 00:00:00 2001 From: Nate Lawson Date: Wed, 21 Jan 2004 03:03:40 +0000 Subject: [PATCH] Make sure pid file creation doesn't complain if it can't create the file. This removes a warning message when suspending is called by a non-root user. --- etc/rc.suspend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/rc.suspend b/etc/rc.suspend index 8b02a0fadeb..26fe198ceda 100755 --- a/etc/rc.suspend +++ b/etc/rc.suspend @@ -41,7 +41,7 @@ if [ -r /var/run/rc.suspend.pid ]; then exit 1 fi -echo $$ > /var/run/rc.suspend.pid +echo $$ 2> /dev/null > /var/run/rc.suspend.pid # If you have troubles on suspending with PC-CARD modem, try this. # See also contrib/pccardq.c (Only for PAO users).