/usr/share/avifile-0.7/scripts/avicap-setnvram is in libavifile-0.7-common 1:0.7.48~20090503.ds-19.
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 | #!/bin/bash
DATESTR=$1
AVICAP_DIR=/etc/avicap
echo "avicap-setnvram: timestamp=$DATESTR"
mkdir -p $AVICAP_DIR
# edit this to suit your configuration!
/usr/local/bin/nvram-wakeup -C /etc/nvram-wakeup-k7m.config -s $DATESTR
if test $DATESTR == 0 ; then
echo "avicap-setnvram: Wakeup per RTC alarm has been disabled"
rm -f $AVICAP_DIR/next_recording
else
echo "avicap-setnvram: Wakeup per RTC alarm enabled"
echo $DATESTR >$AVICAP_DIR/next_recording
fi
|