mirror of https://github.com/dirtbags/moth.git
Add missing keys
This commit is contained in:
parent
5a2caae951
commit
0444d8c541
|
@ -12,6 +12,7 @@ start () {
|
|||
iptables -P OUTPUT ACCEPT
|
||||
iptables -P FORWARD ACCEPT
|
||||
|
||||
iptables -A INPUT -p udp --dport 53 -j ACCEPT
|
||||
iptables -A INPUT -p udp --dport 67 -j ACCEPT
|
||||
iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT
|
||||
iptables -A INPUT -s 10.0.0.0/16 -j ACCEPT
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
#! /bin/sh -e
|
||||
|
||||
set -e
|
||||
|
||||
indir=$1; shift
|
||||
outdir=$1; shift
|
||||
|
||||
|
@ -69,7 +71,7 @@ for dn in $indir/[0-9]*; do
|
|||
|
||||
if [ -f $dn/Makefile ]; then
|
||||
# If there's a makefile, run make
|
||||
make -C $dn DESTDIR=$(pwd)/$tgt
|
||||
make -C $dn DESTDIR=$(pwd)/$tgt || exit 1
|
||||
files=$(cd $tgt; echo *)
|
||||
else
|
||||
# Otherwise, look for special files and copy the rest
|
||||
|
@ -95,6 +97,10 @@ for dn in $indir/[0-9]*; do
|
|||
fi
|
||||
|
||||
# Append keys
|
||||
if ! [ -f $dn/key ]; then
|
||||
echo "$dn/key: No such file or directory" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
while read answer; do
|
||||
echo $points $answer
|
||||
done < $dn/key >> $uanswers
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
statistical information
|
Loading…
Reference in New Issue