Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retroflag ubuntu scripts #1

Merged
merged 3 commits into from
Apr 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Example for batocera:

wget -O - "https://raw.githubusercontent.com/RetroFlag/retroflag-picase/master/batocera_install.sh" | bash

# retroflag-nespi4
# retroflag-nespi4 Ubuntu
RetroFlag Nespi4 Case Safe Shutdown

Turn switch "SAFE SHUTDOWN" to ON.
Expand All @@ -72,7 +72,7 @@ Example for Ubuntu 20.10+:
3. Enter terminal.
4. In the terminal, type the one-line command below(Case sensitive):

echo "wget -O - "https://raw.githubusercontent.com/rfocosi/retroflag-picase/master/ubuntu_install.sh" | SourcePath="https://raw.githubusercontent.com/rfocosi/retroflag-picase/master" bash" | sudo bash
echo "wget -O - "https://raw.githubusercontent.com/RetroFlag/retroflag-picase/master/ubuntu_install.sh" | bash" | sudo bash

--------------------

Expand Down
5 changes: 2 additions & 3 deletions ubuntu_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ WGET_EXEC=$( which wget )

[ -z $SourcePath ] && SourcePath=https://raw.githubusercontent.com/RetroFlag/retroflag-picase/master


#Check if root--------------------------------------
if [[ $EUID -ne 0 ]]; then
echo
Expand Down Expand Up @@ -47,7 +46,7 @@ File=$DEV_ROOT/boot/firmware/config.txt
$WGET_EXEC -q -O "$DEV_ROOT/boot/firmware/overlays/RetroFlag_pw_io.dtbo" "$SourcePath/RetroFlag_pw_io.dtbo"
if grep -q "RetroFlag_pw_io" "$File";
then
sed -i '/RetroFlag_pw_io/c dtoverlay=RetroFlag_pw_io.dtbo' $File
sed -i '/RetroFlag_pw_io/c dtoverlay=RetroFlag_pw_io.dtbo' $File
echo "PW IO fix."
else
echo "dtoverlay=RetroFlag_pw_io.dtbo" >> $File
Expand All @@ -56,7 +55,7 @@ if grep -q "RetroFlag_pw_io" "$File";
fi
if grep -q "enable_uart" "$File";
then
sed -i '/enable_uart/c enable_uart=1' $File
sed -i '/enable_uart/c enable_uart=1' $File
echo "UART fix."
else
echo "enable_uart=1" >> $File
Expand Down