This file is indexed.

/usr/bin/simpleburn-gauges.sh is in simpleburn 1.7.3-1.

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

function mencodergauge () {
	totalsize=$1 #bytes
	pass=$2
	lockfile=$3
	destination=$4
	
	if (( $pass == 0 ))
	then cumul=0
		passpercent=99 #1% for container
	else passpercent=49
		if (( $pass == 1 ))
		then cumul=0
		else cumul=50
		fi
	fi
	echo $cumul	
	while [ -f $lockfile ]; do
		currentsize=`ls -l "$destination" | cut -f5 -d' '`
		let percent=(currentsize*passpercent/totalsize)+cumul
		echo $percent
		sleep 1
	done
}


function ddgauge() {
	totalsize=$1 #bytes
	lockfile=$2
	shift; shift; destination=$*
	
	while [ -f $lockfile ]; do
		filesize=`ls -l "$destination" | cut -f5 -d' '`
		let filesize=filesize/1024
		let percent=(filesize*100)/totalsize
		let percent=percent%100
		echo $percent
		sleep 1
	done
}


case $1 in
	"mencoder") shift
		mencodergauge $*
		;;
	"dd") shift
		ddgauge $*
		;;
	*) echo "usage: intended for SimpleBurn scripts"
	exit 1
esac