Update fluxion

This commit is contained in:
William Todt 2016-03-07 23:58:46 +04:00
parent d0fe6d8a57
commit b8541a70d7
1 changed files with 18 additions and 18 deletions

View File

@ -6,7 +6,8 @@
## ##
################################
#HTTPS SCRIPT
#
clear
@ -57,7 +58,7 @@ airmon
# Check Updates
function checkupdatess {
revision_online="$(timeout -s SIGTERM 20 curl -L "https://sites.google.com/site/deltaxflux/fluxion" 2>/dev/null| grep "^revision" | cut -d "=" -f2)"
revision_online="$(timeout -s SIGTERM 20 curl -L "https://sites.google.com/site/deltaxflux/fluxion_dev" 2>/dev/null| grep "^revision" | cut -d "=" -f2)"
if [ -z "$revision_online" ]; then
echo "?">$DUMP_PATH/Irev
else
@ -482,22 +483,21 @@ if [ $FLUX_DEBUG != 1 ]; then
spinner "$!"
revision_online=$(cat $DUMP_PATH/Irev)
echo -e ""$white" [${red2}${revision_online}$white"$transparent"]"
# if [ "$revision_online" != "?" ]; then
#
# if [ "$revision" != "$revision_online" ]; then
#
# cp $0 $HOME/flux_rev-$revision.backup
# curl -A "Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0" -L https://sites.google.com/site/deltaxflux/fluxion -s -o $0
# echo
# echo
# echo -e ""$red"
#Updated successfully! Restarting the script to apply the changes ..."$transparent""
# sleep 5
# chmod +x $0
# exec $0
#
# fi
# fi
if [ "$revision_online" != "?" ]; then
if [ "$revision" != "$revision_online" ]; then
cp $0 $HOME/flux_rev-$revision.backup
curl -A "Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20100101 Firefox/11.0" -L https://sites.google.com/site/deltaxflux/fluxion_dev -s -o $0
echo
echo
echo -e ""$red"
Updated successfully! Restarting the script to apply the changes ..."$transparent""
sleep 5
chmod +x $0 exec $0
fi
fi
echo ""
tput cnorm
sleep 2