This file is indexed.

/etc/init/rfkill-restore.conf is in rfkill 0.5-1ubuntu1.

This file is owned by root:root, with mode 0o644.

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
# rfkill-restore - restore software RF kill switch state

description	"restore software rfkill state"

start on local-filesystems

task

script
    if [ ! -f /var/lib/rfkill/saved-state ] ||
       [ ! -d /sys/class/rfkill ]; then
        exit 0
    fi

    while read line; do
        set -- $line

        for device in /sys/class/rfkill/*; do
            [ ! -d $device ] && continue

            if [ -f $device/soft ] &&
               [ "$(cat $device/name)" = "$1" ]; then
                echo $2 > $device/soft
            fi
        done
    done < /var/lib/rfkill/saved-state
end script