blob: 654acde4b7cf954d2b9ca604fadef62d3c47648a [file] [log] [blame] [raw]
#!/bin/bash
# Copyright (C) 2000-2005 SWsoft. All rights reserved.
#
# This file may be distributed under the terms of the Q Public License
# as defined by Trolltech AS of Norway and appearing in the file
# LICENSE.QPL included in the packaging of this file.
#
# This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
# WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
test -f /etc/sysconfig/vz || exit 1
test -f /usr/lib/vzctl/scripts/vps-functions || exit 1
test -f /etc/init.d/functions && . /etc/init.d/functions
## SuSE distro
if [ -f /etc/sysconfig/network/scripts/functions ]; then
vznet=$1
else
CONFIG=${1}
if ! . "$CONFIG"; then
echo "can't source interface config $CONFIG" >&2
exit 1
fi
vznet=$DEVICE
fi
echo "Shutting down interface $vznet: "
ip link set $vznet down