Minor fixes and upgrades
Remove Responder Database. Add check for previous logs.pull/8/head
parent
4e052dd2a7
commit
a715920e5a
|
@ -12,7 +12,7 @@ AUTHOR=IMcPwn
|
||||||
|
|
||||||
function start {
|
function start {
|
||||||
if [ ! -s /usr/bin/git ]; then
|
if [ ! -s /usr/bin/git ]; then
|
||||||
opkg update && opkg install git
|
opkg update && opkg install git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -s /usr/lib/python2.7/sqlite3/dbapi2.py ]; then
|
if [ ! -s /usr/lib/python2.7/sqlite3/dbapi2.py ]; then
|
||||||
|
@ -30,10 +30,14 @@ if [ -s /etc/config/responder ];
|
||||||
case $responder_log in
|
case $responder_log in
|
||||||
sshfs)
|
sshfs)
|
||||||
if pgrep sshfs > /dev/null; then
|
if pgrep sshfs > /dev/null; then
|
||||||
echo "SSHFS Running"
|
if [ -s /etc/turtle/Responder/Responder.db ]; then
|
||||||
rm -r /etc/turtle/Responder/logs
|
rm -r /etc/turtle/Responder/Responder.db
|
||||||
mkdir -p /sshfs/Responder/logs
|
fi
|
||||||
ln -s /sshfs/Responder/logs /etc/turtle/Responder/logs
|
if [ $(readlink /etc/turtle/Responder/logs) != "/sshfs/Responder/logs" ]; then
|
||||||
|
rm -r /etc/turtle/Responder/logs
|
||||||
|
mkdir -p /sshfs/Responder/logs
|
||||||
|
ln -s /sshfs/Responder/logs /etc/turtle/Responder/logs
|
||||||
|
fi
|
||||||
echo "python /etc/turtle/Responder/Responder.py -I br-lan" | at now
|
echo "python /etc/turtle/Responder/Responder.py -I br-lan" | at now
|
||||||
echo responder started and logs are being saved to /sshfs/Responder/logs
|
echo responder started and logs are being saved to /sshfs/Responder/logs
|
||||||
else
|
else
|
||||||
|
@ -41,11 +45,16 @@ if [ -s /etc/config/responder ];
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
tmp)
|
tmp)
|
||||||
rm -r /etc/turtle/Responder/logs
|
if [ -s /etc/turtle/Responder/Responder.db ]; then
|
||||||
mkdir -p /tmp/Responder/logs
|
rm -r /etc/turtle/Responder/Responder.db
|
||||||
ln -s /tmp/Responder/logs /etc/turtle/Responder/logs
|
fi
|
||||||
echo "python /etc/turtle/Responder/Responder.py -I br-lan" | at now
|
if [ $(readlink /etc/turtle/Responder/logs) != "/tmp/Responder/logs" ]; then
|
||||||
echo responder started and logs are being saved to /tmp/Responder/logs
|
rm -r /etc/turtle/Responder/logs
|
||||||
|
mkdir -p /tmp/Responder/logs
|
||||||
|
ln -s /tmp/Responder/logs /etc/turtle/Responder/logs
|
||||||
|
fi
|
||||||
|
echo "python /etc/turtle/Responder/Responder.py -I br-lan" | at now
|
||||||
|
echo responder started and logs are being saved to /tmp/Responder/logs
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue