/usr/share/vbackup/scripts/umount is in vbackup 1.0.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | #!/bin/bash
#
# This file is part of vbackup.
#
# vbackup is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# vbackup is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with vbackup If not, see <http://www.gnu.org/licenses/>.
#
# $Id$
#
# Description
# Umount a mount point
#
NAME="umount"
VERSION="$PACKAGE_VERSION"
DESC="Umount a mount point"
LICENSE="$PACKAGE_LICENSE"
COPYRIGHT="$PACKAGE_COPYRIGHT"
CONTACT="$PACKAGE_BUGREPORT"
# Display help
do_help()
{
cat << _END
Configuration options:
MOUNTPOINT The path to umount or the devicename
_END
}
# Check configuration
# return: 0: ok, 1: error
do_check_conf()
{
[ -z "$MOUNTPOINT" ] && h_error "Missing MOUNTPOINT" && return 2
return 0
}
# Do backup
do_run()
{
if umount "$MOUNTPOINT" ; then
h_msg 6 "Umounted $MOUNTPOINT"
R=0
else
h_error "Failed to umount $MOUNTPOINT"
R=1
fi
return $R
}
|