Skip to content

Commit

Permalink
Finished the airplane-mode update script
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Hale committed Feb 7, 2021
1 parent 29e0fd0 commit 6499ef6
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion update-airplane-mode.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
#!/bin/bash
# Retropie Airplane Mode scripts; allows for disabling and enabling wireless.
# Copyright (C) <2020> <Brandon Hale>

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

# DISCLAIMER: The Piboy DMG is made by ExperimentalPi. The authors of this script is not affiliated and does not own ExperimentalPi or the Piboy DMG. They are properties of their respective owners.

Expand All @@ -12,7 +27,11 @@

RAM_DIR=~/RetroPie/retropiemenu/wireless
RAM_OLD_DIR=~/RetroPie/roms/ports/wireless
RAM_PIBOY_OSD=$(cat ~/RetroPie/retropiemenu/wireless/.config)
# Only cat RAM_PIBOY_OSD if the .config file exists so no errors happen.
if [ -e ~/RetroPie/retropiemenu/wireless/.config ]
then
RAM_PIBOY_OSD=$(cat ~/RetroPie/retropiemenu/wireless/.config)
fi

RAM_INSTALL() {
git clone https://github.com/brandflake11/Retropie-Airplane-Mode.git ~/RetroPie/retropiemenu/wireless
Expand Down

0 comments on commit 6499ef6

Please sign in to comment.