This file is indexed.

/usr/sbin/update-mozpluggerrc is in mozplugger 1.14.5-2.

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
83
84
85
86
87
88
89
90
91
92
93
#!/bin/sh
#
# update-mozpluggerc - Update mozplugger RC file
# Copyright (C) 2010 Alessio Treglia <alessio@debian.org>
#
# This program 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 2 of the License, or
# (at your option) any later version.
#
# This program 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 this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

set -e

PROGNAME=${0##*/}
TEMPLATES_DIR=/etc/mozpluggerrc.d
DEFAULT_CONFIG_FILE=/etc/mozpluggerrc
WRITE_TO_STDOUT=

# Display a usage message.
usage () {
	cat <<EOF
Usage: $PROGNAME -O
       $PROGNAME -h
This program concatenates all *.conf files in /etc/mozpluggerrc.d/ in order
to generate a new configuration file. By default, the result is written to
/etc/mozpluggerrc. This utility is primarily useful to Debian package
maintainer scripts. See update-mozpluggerrc(8) for more information.
Options:
    -h                        display this usage message and exit
    -O                        write to stdout
EOF
}

# Display a message; suppress messages if redirected to stdout
message() {
	[ -n "$WRITE_TO_STDOUT" ] || echo "$*"
}

# Update /etc/mozpluggerrc (or write the result to stdout)
update_mozpluggerrc() {
	local outfile
	# Really update the file
	if [ -z "$WRITE_TO_STDOUT" ] ; then
		outfile="$DEFAULT_CONFIG_FILE"
		if [ -f "$outfile" ] ; then
			echo "Purging current configuration... "
			rm "$outfile"
		fi
	else
		outfile=/dev/stdout
	fi

	message "Generating mozpluggerrc... "
	templates=`ls "${TEMPLATES_DIR}"/*.conf 2>/dev/null || true`
	for i in ${templates} ; do
		message "Merging $i ..."
		cat "$i" >> "$outfile"
	done
	message "Done."
}

# Parse command line arguments
while getopts ":Oh" opt; do
	case $opt in
		h )		usage
				exit 0 ;;
		O )		WRITE_TO_STDOUT=true
				;;
		\? )	echo 'Wrong option.'
				usage
				exit 1 ;;
	esac
done

shift $(($OPTIND - 1))

if [ ! -z "$@" ]; then
	echo 'Too many arguments, exiting...'
	exit 2
fi

# Call the routine
update_mozpluggerrc

exit 0