aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.suspend
diff options
context:
space:
mode:
authorNate Lawson <njl@FreeBSD.org>2004-01-21 03:03:40 +0000
committerNate Lawson <njl@FreeBSD.org>2004-01-21 03:03:40 +0000
commit88a86dedcea9e9bf926b1e02158bf0df09ebfe7e (patch)
treeca9b80d861c212447e119fd7bfb9fc2cc730275f /etc/rc.suspend
parentb5b47bc6fa9ba9794afd130c91a556a3569166c7 (diff)
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.
Notes
Notes: svn path=/head/; revision=124766
Diffstat (limited to 'etc/rc.suspend')
-rwxr-xr-xetc/rc.suspend2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.suspend b/etc/rc.suspend
index 8b02a0fadebd..26fe198ceda1 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).