/usr/lib/vdr/commands-loader.sh is in vdr 2.0.3-1.
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 28 | #
# This file is called by /etc/init.d/vdr
#
writewarning ()
{
echo -e \
"#\n"\
"# This file is automatically generated by the vdr init-script. You can\n"\
"# define custom commands in /etc/vdr/command-hooks/$1.custom.conf\n"\
"# (see /usr/share/doc/vdr/README.Debian.gz).\n"\
"#\n\n\n"
}
# merges single <cmdtype>.<name>.conf files into one <cmdtype>.conf
# in alphabetical order
mergecommands ()
{
local cmdtype
local cmdfile
cmdtype=$1
cmdfile="/var/cache/vdr/$cmdtype.conf"
writewarning $cmdtype > "$cmdfile"
find $CMDHOOKSDIR -maxdepth 1 -name "$cmdtype.*.conf" | sort | xargs cat >> "$cmdfile"
}
|