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.
This commit is contained in:
Nate Lawson 2004-01-21 03:03:40 +00:00
parent b5b47bc6fa
commit 88a86dedce

View file

@ -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).