This file is indexed.

/usr/share/anyremote/cfg-data/Utils/pulse-audio-ctl.sh is in anyremote-data 6.3.2-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
54
55
56
57
58
59
60
#!/bin/sh

#
# Must be called from anyremote configuration file as $(CfgDir)/Utils/pulse-audio-ctl.sh up|down|mute|set|get <sink name> [<volume>]
#

if [ "x$1" = "xup" ]; then
  HEXVOL=`pacmd dump | grep "set-sink-volume $2" | cut -d " " -f 3`
  VOL=`printf "%d" $HEXVOL`
  # about 5%
  NEWVOL=`expr $VOL + 3270`
  if [ $(($NEWVOL)) -gt $((0x10000)) ]
  then
    NEWVOL=65536
  fi
  pactl set-sink-volume $2 $NEWVOL 
fi

if [ "x$1" = "xdown" ]; then
  HEXVOL=`pacmd dump | grep "set-sink-volume $2" | cut -d " " -f 3`
  VOL=`printf "%d" $HEXVOL`
  # about 5%
  NEWVOL=`expr $VOL - 3270`
  if [ $(($NEWVOL)) -lt $((0x00000)) ]
  then
    NEWVOL=0
  fi
  pactl set-sink-volume $2 $NEWVOL 
fi

if [ "x$1" = "xmute" ]; then
  A=`pacmd dump | grep "set-sink-mute $2" | cut -d " " -f 3`
  if [ $A = "no" ]
  then
    pactl set-sink-mute $2 yes
  else
    pactl set-sink-mute $2 no
  fi
fi 

if [ "x$1" = "xset" ]; then
  VOL=`echo $3|tr -d '%'`
  NEWVOL=`echo "$VOL*65536/100"|bc`
  if [ $(($NEWVOL)) -lt $((0x00000)) ]
  then
    NEWVOL=0
  fi
  if [ $(($NEWVOL)) -gt $((0x10000)) ]
  then
    NEWVOL=65536
  fi
  pactl set-sink-volume $2 $NEWVOL;
fi; 

if [ "x$1" = "xget" ]; then
  HEXVOL=`pacmd dump | grep "set-sink-volume $2" | cut -d " " -f 3`
  VOL65=`printf "%d" $HEXVOL`
  VOL=`echo "$VOL65*100/65536"|bc`
  echo $VOL
fi;