a few changes for HACK

This commit is contained in:
Neale Pickett 2012-07-16 17:46:27 -06:00
parent f99c87b01e
commit a2f50998d1
3 changed files with 6 additions and 5 deletions

View File

@ -1,7 +1,9 @@
#! /bin/sh
OPT=${CTF_BASE:-/opt}
# Use first installed binary
for bin in /opt/*/bin/$1; do
for bin in $OPT/*/bin/$1; do
if [ -x $bin ]; then
exec $bin
fi

View File

@ -26,7 +26,7 @@ for pwfile in $OPT/*/password; do
if [ -f $pwfile ]; then
(
cat bkup.png
tar cvf - $BASE | gzip -c | $OPT/*/bin/tea 3< $pwfile
tar cf - $BASE | gzip -c | $OPT/*/bin/tea 3< $pwfile
) > $BACKUP.new
mv $BACKUP.new $BACKUP
break

View File

@ -40,10 +40,9 @@ if [ -x /sbin/inotifyd ]; then
fi
# Simulate inotifyd by polling
cd $NEWDIR
while true; do
find . -type f | while read fn; do
./pointsd m $NEWDIR ${fn#./}
find $NEWDIR -type f | while read fn; do
./pointsd m $NEWDIR ${fn##*/}
done
sleep 7
done