This file is indexed.

/etc/init.d/freedombox-first-run is in freedombox-setup 0.8ubuntu1.

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
#!/bin/sh
### BEGIN INIT INFO
# Provides:          freedombox-first-run
# Default-Start:     2 3 4 5
# Default-Stop:
# Required-Start:    $network $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Should-Start:      firewalld tor haveged
# Short-Description: Finish Freedombox install after first boot
# Description:
#   Script to complete the post-install process on first FBX boot.
### END INIT INFO

RUNONCE=/var/lib/freedombox/first-run-enable
LOGFILE=/var/log/freedombox-first-run.log

if [ ! -e $RUNONCE ]
then
    exit
fi

. /lib/lsb/init-functions

exec > $LOGFILE 2>&1

etckeeper_commit() {
    if type etckeeper > /dev/null 2>&1 ; then
	HOME=/root etckeeper commit -m "$1"
    fi
}

mark_complete() {
    # Prevent this initial configuration script from running again.

    log_action_begin_msg "Marking first-run complete"
    mkdir -p "${RUNONCE%/*}"
    rm -f $RUNONCE
    log_action_end_msg 0
}

case "$1" in
    start)
        etckeeper_commit "Status before first-run on first boot."

	for f in /usr/lib/freedombox/first-run.d/* ; do
	    $f
	done

        etckeeper_commit "Status after first-run on first boot."

        # the last things we do before quitting.
        mark_complete

        # we're done, reboot.
        reboot
        ;;
    stop|restart|force-reload)
	# Do nothing
	;;
    *)
        log_success_msg "Usage: /etc/init.d/first-run {start}"
        exit 1
        ;;
esac