Fix for answers containing '\', fix port number for ssh

This commit is contained in:
Neale Pickett 2011-03-05 11:57:41 -07:00
parent c6ba71cc65
commit 0c040c66fd
3 changed files with 5 additions and 9 deletions

View File

@ -98,9 +98,7 @@ for dn in $indir/[0-9]*; do
# Append keys # Append keys
if [ -f $dn/key ]; then if [ -f $dn/key ]; then
while read answer; do awk -v P=$points '/./ { printf("%d %s\n", P, $0); }' < $dn/key >> $uanswers
[ -n "$answer" ] && echo $points $answer >> $uanswers
done < $dn/key
else else
echo "$dn/key: No such file or directory" 1>&2 echo "$dn/key: No such file or directory" 1>&2
exit 1 exit 1
@ -108,9 +106,7 @@ for dn in $indir/[0-9]*; do
# Append summary # Append summary
if [ -f $dn/summary ]; then if [ -f $dn/summary ]; then
while read line; do awk -v P=$points '/./ { printf("%d %s\n", P, $0); }' < $dn/summary >> $usummary
echo $points $line >> $usummary
done < $dn/summary
fi fi
# Generate index now that we have a list of files # Generate index now that we have a list of files

View File

@ -1,6 +1,6 @@
#! /bin/sh #! /bin/sh
exec 2>&1 exec 2>&1
iptables -A INPUT -s 10.0.0.0/16 --proto tcp --dport 55 -j ACCEPT iptables -A INPUT -s 10.0.0.0/16 --proto tcp --dport 22 -j ACCEPT
iptables -A INPUT --proto tcp --dport 55 -j REJECT iptables -A INPUT --proto tcp --dport 22 -j REJECT
exec dropbear -r ./rsa.key -E -F exec dropbear -r ./rsa.key -E -F

View File

@ -1 +1 @@
kdD kdD