This file is indexed.

/lib/rc/sh/migrate-to-run.sh is in openrc 0.13.1-4.

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
#!/bin/sh
# Copyright (c) 2012 William Hubbs <w.d.hubbs@gmail.com>
# Released under the 2-clause BSD license.

. "/lib/rc/sh/functions.sh"

if [ -e /run/openrc/softlevel ]; then
	einfo "The OpenRC dependency data has already been migrated."
	exit 0
fi

if [ ! -d /run ]; then
	eerror "/run is not a directory."
	eerror "moving /run to /run.pre-openrc"
	mv /run /run.pre-openrc
	mkdir /run
fi

rm -rf /run/openrc

if ! mountinfo -q -f tmpfs /run; then
	ln -s "/lib/rc"/init.d /run/openrc
else
	cp -a "/lib/rc/init.d" /run/openrc
	rc-update -u
fi

einfo "The OpenRC dependency data was migrated successfully."
exit 0