From 6499ef6fc6a9287d0e64b3caf807f8be3734b3ca Mon Sep 17 00:00:00 2001 From: Brandon Hale Date: Sat, 6 Feb 2021 19:03:40 -0500 Subject: [PATCH] Finished the airplane-mode update script --- update-airplane-mode.sh | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/update-airplane-mode.sh b/update-airplane-mode.sh index 2c54f19..0c89c29 100755 --- a/update-airplane-mode.sh +++ b/update-airplane-mode.sh @@ -1,4 +1,19 @@ #!/bin/bash + # Retropie Airplane Mode scripts; allows for disabling and enabling wireless. + # Copyright (C) <2020> + + # 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 . # 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. @@ -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