From 66bdf5116aad7423aaf587dfec26bed67e5cf196 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Sun, 24 Jul 2016 11:41:07 +0200 Subject: [PATCH] run commands in separate x-terminal-emulator --- README | 6 +++--- smashbroshaxer | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README b/README index 493c17e..76bccf7 100644 --- a/README +++ b/README @@ -9,10 +9,10 @@ Requirements: * sudo Usage: -* run script in terminal +* run script * select wifi device * select game version -* press hax -* [if requested] enter your password in terminal +* click 'hax my smash' +* enter your password in terminal * in game go to Smash > Group * ... profit? diff --git a/smashbroshaxer b/smashbroshaxer index 24575ce..3a99e66 100755 --- a/smashbroshaxer +++ b/smashbroshaxer @@ -48,16 +48,16 @@ device=${array[0]} replay=${array[1]} if [[ ${ret} == 0 ]]; then - sudo ifconfig ${device} down - sudo iwconfig ${device} mode monitor - sudo ifconfig ${device} up - + x-terminal-emulator -e /bin/bash -c \ + "sudo ifconfig ${device} down && \ + sudo iwconfig ${device} mode monitor && \ + sudo ifconfig ${device} up && \ yes | sudo ${AIREPLAY} \ --interactive \ -r ${basedir}/pcap/${replay} \ -h 59:ee:3f:2a:37:e0 \ -x 20 \ - ${device} + ${device}" else echo -e "\n cancelled by user \n" exit 1