Fix Responderconf function

pull/8/head
IMcPwn 2015-09-30 17:33:46 -04:00
parent ed5a49100c
commit 7d4be6e25f
1 changed files with 18 additions and 5 deletions

View File

@ -203,7 +203,7 @@ The log files can be saved to SSHFS or tmp.\n" 16 60 3\
esac
configure
;;
$DIALOG_CANCEL)
$DIALOG_CANCEL)
configure;;
$DIALOG_ESC)
configure;;
@ -243,7 +243,7 @@ Responder can target the Host machine (The computer the LAN Turtle is plugged in
esac
configure
;;
$DIALOG_CANCEL)
$DIALOG_CANCEL)
configure;;
$DIALOG_ESC)
configure;;
@ -317,9 +317,9 @@ mode
function responderconf {
dialog \
--help-button \
--title "Editing: /etc/turtle/Responder/Responder.conf" \
--editbox /etc/turtle/Responder/Responder.conf 18 72\
--help-button \
2>$CONF
return=$?
case $return in
@ -327,9 +327,22 @@ dialog \
cat $CONF | {
cat $CONF > /etc/turtle/Responder/Responder.conf
rm $CONF
configure
};;
esac
configure
$DIALOG_HELP)
dialog --title "Help" \
--msgbox "For information on this configuration, see: https://github.com/SpiderLabs/Responder" 20 60
responderconf
;;
$DIALOG_CANCEL)
rm $CONF
configure
;;
$DIALOG_ESC)
rm $CONF
configure
;;
esac
}
function configure {