This file is indexed.

/usr/bin/smicache is in smitools 0.4.8+dfsg2-8ubuntu2.

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
#!/bin/sh
#
# smicache --
#
#	A simple caching method, used by the config file `cache' directive.
#
# Copyright (c) 2001 Frank Strauss, Technical University of Braunschweig.
#
# See the file "COPYING" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
# $Id: smicache.in 8090 2008-04-18 12:56:29Z strauss $
#
# NOTE, that this script relies on wget and getopts
# (shell builtin like in bash or standalone).
#
# NOTE, that smicache has just been an experiment. It is NOT suggested
# to use it in a production environment.

WGET=
GETOPTS=getopts
VERSION=0.4.8

prefix=http://www.ibr.cs.tu-bs.de/projects/libsmi/smicache/
dir=/tmp



do_version () {
    echo "smicache $VERSION"
}



do_usage () {
    echo "Usage: smicache [-Vh] [-d dir] [-p prefix] mib"
    echo "-V         show version and license information"
    echo "-h         show usage information"
    echo "-d dir     use dir as the caching directory"
    echo "-p prefix  use prefix as the URL prefix for fetching modules"
    echo "mib        name of the module to be fetched"
}



do_fetch () {
    $WGET -q -O "$dir/$1" "$prefix/$1"
}



while $GETOPTS Vhd:p: c ; do
    case $c in
	d)	dir="$OPTARG"
		;;
	p)	prefix="$OPTARG"
		;;
	h)	do_usage
		exit 0
		;;
	V)	do_version
		exit 0
		;;
	*)	do_usage
		exit 1
		;;
    esac
done

shift `expr $OPTIND - 1`



if [ $# -eq 1 ] ; then
    do_fetch $1
else 
    do_usage
fi

exit 0