mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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:
parent
b5b47bc6fa
commit
88a86dedce
1 changed files with 1 additions and 1 deletions
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Reference in a new issue