mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-18 10:04:20 +03:00
Add copyright notice to lvmconf.sh and use unique exit codes.
This commit is contained in:
parent
fd0eec20b7
commit
b2cba8eda6
@ -1,9 +1,20 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# Copyright (C) 2004-2005 Red Hat, Inc. All rights reserved.
|
||||||
|
#
|
||||||
|
# This file is part of the lvm2-cluster package.
|
||||||
|
#
|
||||||
|
# This copyrighted material is made available to anyone wishing to use,
|
||||||
|
# modify, copy, or redistribute it subject to the terms and conditions
|
||||||
|
# of the GNU General Public License v.2.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License
|
||||||
|
# along with this program; if not, write to the Free Software Foundation,
|
||||||
|
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
#
|
#
|
||||||
# Edit an lvm.conf file to adjust various properties
|
# Edit an lvm.conf file to adjust various properties
|
||||||
#
|
#
|
||||||
#
|
|
||||||
#
|
|
||||||
|
|
||||||
function usage
|
function usage
|
||||||
{
|
{
|
||||||
@ -138,7 +149,7 @@ then
|
|||||||
if [ "$have_global" = "1" ]
|
if [ "$have_global" = "1" ]
|
||||||
then
|
then
|
||||||
echo "global keys but no 'global {' found, can't edit file"
|
echo "global keys but no 'global {' found, can't edit file"
|
||||||
exit 12
|
exit 13
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -161,7 +172,7 @@ EOF
|
|||||||
if [ $? != 0 ]
|
if [ $? != 0 ]
|
||||||
then
|
then
|
||||||
echo "failed to create temporary config file, $CONFIGFILE not updated"
|
echo "failed to create temporary config file, $CONFIGFILE not updated"
|
||||||
exit 1
|
exit 14
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
#
|
#
|
||||||
@ -208,7 +219,7 @@ else
|
|||||||
if [ $? != 0 ]
|
if [ $? != 0 ]
|
||||||
then
|
then
|
||||||
echo "sed failed, $CONFIGFILE not updated"
|
echo "sed failed, $CONFIGFILE not updated"
|
||||||
exit 1
|
exit 15
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user