This file is indexed.

/usr/share/vbackup/scripts/mount is in vbackup 0.1.9-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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/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: mount 3393 2012-03-06 21:00:03Z v13 $
#
# Description
#	Mount a partition
#

NAME="mount"
VERSION="$PACKAGE_VERSION"
DESC="Mount a partition"
LICENSE="$PACKAGE_LICENSE"
COPYRIGHT="$PACKAGE_COPYRIGHT"
CONTACT="$PACKAGE_BUGREPORT"

# Display help
do_help()
{
	cat << _END
Configuration options:
	DEVICE		The device name
	MOUNTPOINT	Where to mount it (required)
	OPTIONS		Mount options, not including -o
	FSTYPE		Filesystem type

	If DEVICE is not defined an /etc/fstab entry must exist
_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()
{
	local	A
	local	B
	local	C

	if [ ! -z "$DEVICE" ] ; then
		A="$DEVICE"
	fi

	if [ ! -z "$FSTYPE" ] ; then
		B="-t $FSTYPE"
	fi

	if [ ! -z "$OPTIONS" ] ; then
		C="-o $OPTIONS"
	fi

	if mount $A "$MOUNTPOINT" $B $C ; then
		R=0
		h_msg 6 "Mounted $MOUNTPOINT"
	else
		h_error "Failed to mount $MOUNTPOINT"
		R=3
	fi

	return $R
}