summaryrefslogtreecommitdiff
path: root/usr/src/cmd/dumpadm
diff options
context:
space:
mode:
authoreschrock <none@none>2006-02-22 18:19:30 -0800
committereschrock <none@none>2006-02-22 18:19:30 -0800
commit7950274e5799b56695a76f974ac361411ec2e515 (patch)
treea939e6661c651f0d011970a75a288e182e4f1c85 /usr/src/cmd/dumpadm
parentfb27b1cde16b9960f54ab0b90d03c71f2866b393 (diff)
downloadillumos-joyent-7950274e5799b56695a76f974ac361411ec2e515.tar.gz
5004701 svc-savecore should be quieter about swap devices with no dump support
Diffstat (limited to 'usr/src/cmd/dumpadm')
-rw-r--r--usr/src/cmd/dumpadm/svc-dumpadm10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/src/cmd/dumpadm/svc-dumpadm b/usr/src/cmd/dumpadm/svc-dumpadm
index f5571b7285..022bbab3b7 100644
--- a/usr/src/cmd/dumpadm/svc-dumpadm
+++ b/usr/src/cmd/dumpadm/svc-dumpadm
@@ -3,9 +3,8 @@
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
-# Common Development and Distribution License, Version 1.0 only
-# (the "License"). You may not use this file except in compliance
-# with the License.
+# Common Development and Distribution License (the "License").
+# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
@@ -21,7 +20,7 @@
# CDDL HEADER END
#
#
-# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
#ident "%Z%%M% %I% %E% SMI"
@@ -88,7 +87,8 @@ fi
# saved the dump, savecore will just exit immediately.
#
if [ "x$DUMPADM_ENABLE" != xno ]; then
- if /usr/sbin/swap -l | grep "^${DUMPADM_DEVICE} " >/dev/null 2>&1; then
+ if /usr/sbin/swap -l 2>/dev/null | grep "^${DUMPADM_DEVICE} " \
+ >/dev/null 2>&1; then
#
# If the dump device is part of swap, we only need to run
# savecore a second time if the device is different from the