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

@ -317,9 +317,9 @@ mode
function responderconf { function responderconf {
dialog \ dialog \
--help-button \
--title "Editing: /etc/turtle/Responder/Responder.conf" \ --title "Editing: /etc/turtle/Responder/Responder.conf" \
--editbox /etc/turtle/Responder/Responder.conf 18 72\ --editbox /etc/turtle/Responder/Responder.conf 18 72\
--help-button \
2>$CONF 2>$CONF
return=$? return=$?
case $return in case $return in
@ -327,9 +327,22 @@ dialog \
cat $CONF | { cat $CONF | {
cat $CONF > /etc/turtle/Responder/Responder.conf cat $CONF > /etc/turtle/Responder/Responder.conf
rm $CONF rm $CONF
};;
esac
configure 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 { function configure {