diff options
author | njl <njl@FreeBSD.org> | 2004-01-21 03:03:40 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-01-21 03:03:40 +0000 |
commit | cbf67a66c593c3ebfe7c7bf8753e040a66b904df (patch) | |
tree | ca9b80d861c212447e119fd7bfb9fc2cc730275f /etc/rc.suspend | |
parent | 0ac3a99bac662e7f27e474770539a21ab8c593bf (diff) | |
download | FreeBSD-src-cbf67a66c593c3ebfe7c7bf8753e040a66b904df.zip FreeBSD-src-cbf67a66c593c3ebfe7c7bf8753e040a66b904df.tar.gz |
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.
Diffstat (limited to 'etc/rc.suspend')
-rwxr-xr-x | etc/rc.suspend | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.suspend b/etc/rc.suspend index 8b02a0f..26fe198 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). |