This file is indexed.

/usr/sbin/ocs-live-pre-run is in clonezilla 3.10.11-3.

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
#!/bin/bash

DRBL_SCRIPT_PATH="${DRBL_SCRIPT_PATH:-/usr/share/drbl}"
. $DRBL_SCRIPT_PATH/sbin/drbl-conf-functions
. /etc/drbl/drbl-ocs.conf
. $DRBL_SCRIPT_PATH/sbin/ocs-functions

#
cmdl_file="/proc/cmdline"

ocs_prerun_list="$(grep -Ewo "ocs_prerun[[:digit:]]*" $cmdl_file | uniq | sort -V)"
ocs_prerun_list="$(echo $ocs_prerun_list)"  # in one line

if [ -z "$ocs_prerun_list" ]; then
  exit 0
else
  echo "Found ocs_prerun* parameter in boot parameters..."
  echo "The order to run: $ocs_prerun_list"
fi

parse_cmdline_option -c $cmdl_file "echo_ocs_prerun"

for i in $ocs_prerun_list; do
  parse_cmdline_option -c $cmdl_file "$i"
  eval irun=\$$i
  if [ -n "$irun" ]; then
    echo "**************************"
    # run it
    if [ "$echo_ocs_prerun" != "no" ]; then
      echo "Now run \"$i\": $irun..."
    fi
    # Since "$irun" might not be exe mode, so we test it if it's script, use . $irun, else, run it directly.
    if [ "$(LANG=C file -Ls "$irun" 2>/dev/null | grep -iE "shell script")" ]; then
      $irun
    else
      eval $irun
    fi
  fi
done