Skip to content

Commit

Permalink
Echo gamepad_config info if running from ssh
Browse files Browse the repository at this point in the history
  • Loading branch information
smootalicious committed Jun 28, 2022
1 parent 641d547 commit d61f8c7
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion M8/setup/gamepad_config/all_joysticks_info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ cd $CURRENT_PATH

sudo chmod 666 /dev/tty1;
echo -e "\e[032m" > /dev/tty1;
echo "Running gamepad_config on device...";
echo "Running './gamepad_config -l' on device...";
./gamepad_config -l > /dev/tty1;
printf "\033c" >> /dev/tty1;
2 changes: 1 addition & 1 deletion M8/setup/gamepad_config/config_gamepad_0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $CURRENT_PATH

sudo chmod 666 /dev/tty1;
echo "Running gamepad_config on device...";
echo "Running './gamepad_config -c 0' on device...";
./gamepad_config -c 0 > /dev/tty1;
printf "\033c" >> /dev/tty1
2 changes: 1 addition & 1 deletion M8/setup/gamepad_config/config_gamepad_1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $CURRENT_PATH

sudo chmod 666 /dev/tty1;
echo "Running gamepad_config on device...";
echo "Running './gamepad_config -c 1' on device...";
./gamepad_config -c 1 > /dev/tty1;
printf "\033c" >> /dev/tty1
2 changes: 1 addition & 1 deletion M8/setup/gamepad_config/config_m8c_buttons.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $CURRENT_PATH

sudo chmod 666 /dev/tty1;
echo "Running gamepad_config on device...";
echo "Running './gamepad_config -m 0' on device...";
./gamepad_config -m 0 > /dev/tty1;
printf "\033c" >> /dev/tty1;
2 changes: 1 addition & 1 deletion M8/setup/gamepad_config/test_gamepad_0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $CURRENT_PATH

sudo chmod 666 /dev/tty1;
echo "Running gamepad_config on device...";
echo "Running './gamepad_config -g 0' on device...";
./gamepad_config -g 0 > /dev/tty1;
printf "\033c" >> /dev/tty1;
2 changes: 1 addition & 1 deletion M8/setup/gamepad_config/test_gamepad_1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $CURRENT_PATH

sudo chmod 666 /dev/tty1;
echo "Running gamepad_config on device...";
echo "Running './gamepad_config -g 1' on device...";
./gamepad_config -g 1 > /dev/tty1;
printf "\033c" >> /dev/tty1;
2 changes: 1 addition & 1 deletion M8/setup/gamepad_config/test_joystick_0.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $CURRENT_PATH

sudo chmod 666 /dev/tty1;
echo "Running gamepad_config on device...";
echo "Running './gamepad_config -j 0' on device...";
./gamepad_config -j 0 > /dev/tty1;
printf "\033c" >> /dev/tty1;
2 changes: 1 addition & 1 deletion M8/setup/gamepad_config/test_joystick_1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ CURRENT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd $CURRENT_PATH

sudo chmod 666 /dev/tty1;
echo "Running gamepad_config on device...";
echo "Running './gamepad_config -j 1' on device...";
./gamepad_config -j 1 > /dev/tty1;
printf "\033c" >> /dev/tty1;

0 comments on commit d61f8c7

Please sign in to comment.