initial commit of bin scripts into git

This commit is contained in:
2023-11-08 13:38:19 +11:00
commit 3735eea3c6
113 changed files with 11631 additions and 0 deletions

18
emit_cards_up.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
exit 0
LOG=/var/tmp/emit.log
echo "emit_cards_up.sh: `date` - starting" >> $LOG
while [ 1 ]; do
# return 0 if adapter1 dir exists / cards have all finished loading
test -d /dev/dvb/adapter1
if [ $? == 0 ]; then
echo "emit_cards_up.sh: `date` - all tuners up (time to emit)" >> $LOG
sudo initctl emit cards_up
echo "emit_cards_up.sh: `date` - done" >> $LOG
exit 0
fi
sleep 1
done