mirror of
https://github.com/MiSTer-devel/Scripts_MiSTer.git
synced 2026-04-19 03:05:34 +00:00
Version 1.0
This commit is contained in:
38
cores_timestamp_off.sh
Normal file
38
cores_timestamp_off.sh
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
# Copyright 2019 Alessandro "Locutus73" Miele
|
||||
|
||||
# You can download the latest version of this script from:
|
||||
# https://github.com/MiSTer-devel/Scripts_MiSTer
|
||||
|
||||
# Version 1.0 - 2019-01-08 - First commit.
|
||||
|
||||
if [ ! -f "/media/fat/config/MiSTer.ini" ]
|
||||
then
|
||||
echo "Downloading MiSTer.ini"
|
||||
if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini"
|
||||
then
|
||||
echo "Unable to download"
|
||||
echo "MiSTer.ini"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak
|
||||
DATECODE_VALUE=1
|
||||
sed -i "1,/rbf_hide_datecode=[0-9]/{s/rbf_hide_datecode=[0-9]/rbf_hide_datecode=$DATECODE_VALUE/}" /media/fat/config/MiSTer.ini
|
||||
echo "rbf_hide_datecode=$DATECODE_VALUE"
|
||||
reboot now
|
||||
exit 0
|
||||
38
cores_timestamp_on.sh
Normal file
38
cores_timestamp_on.sh
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
# Copyright 2019 Alessandro "Locutus73" Miele
|
||||
|
||||
# You can download the latest version of this script from:
|
||||
# https://github.com/MiSTer-devel/Scripts_MiSTer
|
||||
|
||||
# Version 1.0 - 2019-01-08 - First commit.
|
||||
|
||||
if [ ! -f "/media/fat/config/MiSTer.ini" ]
|
||||
then
|
||||
echo "Downloading MiSTer.ini"
|
||||
if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini"
|
||||
then
|
||||
echo "Unable to download"
|
||||
echo "MiSTer.ini"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak
|
||||
DATECODE_VALUE=0
|
||||
sed -i "1,/rbf_hide_datecode=[0-9]/{s/rbf_hide_datecode=[0-9]/rbf_hide_datecode=$DATECODE_VALUE/}" /media/fat/config/MiSTer.ini
|
||||
echo "rbf_hide_datecode=$DATECODE_VALUE"
|
||||
reboot now
|
||||
exit 0
|
||||
38
scandoubler_off.sh
Normal file
38
scandoubler_off.sh
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
# Copyright 2019 Alessandro "Locutus73" Miele
|
||||
|
||||
# You can download the latest version of this script from:
|
||||
# https://github.com/MiSTer-devel/Scripts_MiSTer
|
||||
|
||||
# Version 1.0 - 2019-01-08 - First commit.
|
||||
|
||||
if [ ! -f "/media/fat/config/MiSTer.ini" ]
|
||||
then
|
||||
echo "Downloading MiSTer.ini"
|
||||
if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini"
|
||||
then
|
||||
echo "Unable to download"
|
||||
echo "MiSTer.ini"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak
|
||||
SCANDOUBLER_VALUE=0
|
||||
sed -i "1,/forced_scandoubler=[0-9]/{s/forced_scandoubler=[0-9]/forced_scandoubler=$SCANDOUBLER_VALUE/}" /media/fat/config/MiSTer.ini
|
||||
echo "forced_scandoubler=$SCANDOUBLER_VALUE"
|
||||
reboot now
|
||||
exit 0
|
||||
38
scandoubler_on.sh
Normal file
38
scandoubler_on.sh
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
# Copyright 2019 Alessandro "Locutus73" Miele
|
||||
|
||||
# You can download the latest version of this script from:
|
||||
# https://github.com/MiSTer-devel/Scripts_MiSTer
|
||||
|
||||
# Version 1.0 - 2019-01-08 - First commit.
|
||||
|
||||
if [ ! -f "/media/fat/config/MiSTer.ini" ]
|
||||
then
|
||||
echo "Downloading MiSTer.ini"
|
||||
if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini"
|
||||
then
|
||||
echo "Unable to download"
|
||||
echo "MiSTer.ini"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak
|
||||
SCANDOUBLER_VALUE=1
|
||||
sed -i "1,/forced_scandoubler=[0-9]/{s/forced_scandoubler=[0-9]/forced_scandoubler=$SCANDOUBLER_VALUE/}" /media/fat/config/MiSTer.ini
|
||||
echo "forced_scandoubler=$SCANDOUBLER_VALUE"
|
||||
reboot now
|
||||
exit 0
|
||||
38
vga_scaler_off.sh
Normal file
38
vga_scaler_off.sh
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
# Copyright 2019 Alessandro "Locutus73" Miele
|
||||
|
||||
# You can download the latest version of this script from:
|
||||
# https://github.com/MiSTer-devel/Scripts_MiSTer
|
||||
|
||||
# Version 1.0 - 2019-01-08 - First commit.
|
||||
|
||||
if [ ! -f "/media/fat/config/MiSTer.ini" ]
|
||||
then
|
||||
echo "Downloading MiSTer.ini"
|
||||
if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini"
|
||||
then
|
||||
echo "Unable to download"
|
||||
echo "MiSTer.ini"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak
|
||||
VGA_SCALER_VALUE=0
|
||||
sed -i "1,/vga_scaler=[0-9]/{s/vga_scaler=[0-9]/vga_scaler=$VGA_SCALER_VALUE/}" /media/fat/config/MiSTer.ini
|
||||
echo "vga_scaler=$VGA_SCALER_VALUE"
|
||||
reboot now
|
||||
exit 0
|
||||
38
vga_scaler_on.sh
Normal file
38
vga_scaler_on.sh
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
# Copyright 2019 Alessandro "Locutus73" Miele
|
||||
|
||||
# You can download the latest version of this script from:
|
||||
# https://github.com/MiSTer-devel/Scripts_MiSTer
|
||||
|
||||
# Version 1.0 - 2019-01-08 - First commit.
|
||||
|
||||
if [ ! -f "/media/fat/config/MiSTer.ini" ]
|
||||
then
|
||||
echo "Downloading MiSTer.ini"
|
||||
if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini"
|
||||
then
|
||||
echo "Unable to download"
|
||||
echo "MiSTer.ini"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak
|
||||
VGA_SCALER_VALUE=1
|
||||
sed -i "1,/vga_scaler=[0-9]/{s/vga_scaler=[0-9]/vga_scaler=$VGA_SCALER_VALUE/}" /media/fat/config/MiSTer.ini
|
||||
echo "vga_scaler=$VGA_SCALER_VALUE"
|
||||
reboot now
|
||||
exit 0
|
||||
38
video_info_off.sh
Normal file
38
video_info_off.sh
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
# Copyright 2019 Alessandro "Locutus73" Miele
|
||||
|
||||
# You can download the latest version of this script from:
|
||||
# https://github.com/MiSTer-devel/Scripts_MiSTer
|
||||
|
||||
# Version 1.0 - 2019-01-08 - First commit.
|
||||
|
||||
if [ ! -f "/media/fat/config/MiSTer.ini" ]
|
||||
then
|
||||
echo "Downloading MiSTer.ini"
|
||||
if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini"
|
||||
then
|
||||
echo "Unable to download"
|
||||
echo "MiSTer.ini"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak
|
||||
VIDEO_INFO_VALUE=0
|
||||
sed -i "1,/video_info=[0-9]/{s/video_info=[0-9]/video_info=$VIDEO_INFO_VALUE/}" /media/fat/config/MiSTer.ini
|
||||
echo "video_info=$VIDEO_INFO_VALUE"
|
||||
reboot now
|
||||
exit 0
|
||||
38
video_info_on.sh
Normal file
38
video_info_on.sh
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
# Copyright 2019 Alessandro "Locutus73" Miele
|
||||
|
||||
# You can download the latest version of this script from:
|
||||
# https://github.com/MiSTer-devel/Scripts_MiSTer
|
||||
|
||||
# Version 1.0 - 2019-01-08 - First commit.
|
||||
|
||||
if [ ! -f "/media/fat/config/MiSTer.ini" ]
|
||||
then
|
||||
echo "Downloading MiSTer.ini"
|
||||
if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini"
|
||||
then
|
||||
echo "Unable to download"
|
||||
echo "MiSTer.ini"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak
|
||||
VIDEO_INFO_VALUE=10
|
||||
sed -i "1,/video_info=[0-9]/{s/video_info=[0-9]/video_info=$VIDEO_INFO_VALUE/}" /media/fat/config/MiSTer.ini
|
||||
echo "video_info=$VIDEO_INFO_VALUE"
|
||||
reboot now
|
||||
exit 0
|
||||
38
video_mode_1080p50.sh
Normal file
38
video_mode_1080p50.sh
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
# Copyright 2019 Alessandro "Locutus73" Miele
|
||||
|
||||
# You can download the latest version of this script from:
|
||||
# https://github.com/MiSTer-devel/Scripts_MiSTer
|
||||
|
||||
# Version 1.0 - 2019-01-08 - First commit.
|
||||
|
||||
if [ ! -f "/media/fat/config/MiSTer.ini" ]
|
||||
then
|
||||
echo "Downloading MiSTer.ini"
|
||||
if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini"
|
||||
then
|
||||
echo "Unable to download"
|
||||
echo "MiSTer.ini"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak
|
||||
VIDEO_VALUE=9
|
||||
sed -i "1,/video_mode=[0-9]/{s/video_mode=[0-9]/video_mode=$VIDEO_VALUE/}" /media/fat/config/MiSTer.ini
|
||||
echo "video_mode=$VIDEO_VALUE"
|
||||
reboot now
|
||||
exit 0
|
||||
38
video_mode_1080p60.sh
Normal file
38
video_mode_1080p60.sh
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
# Copyright 2019 Alessandro "Locutus73" Miele
|
||||
|
||||
# You can download the latest version of this script from:
|
||||
# https://github.com/MiSTer-devel/Scripts_MiSTer
|
||||
|
||||
# Version 1.0 - 2019-01-08 - First commit.
|
||||
|
||||
if [ ! -f "/media/fat/config/MiSTer.ini" ]
|
||||
then
|
||||
echo "Downloading MiSTer.ini"
|
||||
if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini"
|
||||
then
|
||||
echo "Unable to download"
|
||||
echo "MiSTer.ini"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak
|
||||
VIDEO_VALUE=8
|
||||
sed -i "1,/video_mode=[0-9]/{s/video_mode=[0-9]/video_mode=$VIDEO_VALUE/}" /media/fat/config/MiSTer.ini
|
||||
echo "video_mode=$VIDEO_VALUE"
|
||||
reboot now
|
||||
exit 0
|
||||
38
video_mode_720p50.sh
Normal file
38
video_mode_720p50.sh
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
# Copyright 2019 Alessandro "Locutus73" Miele
|
||||
|
||||
# You can download the latest version of this script from:
|
||||
# https://github.com/MiSTer-devel/Scripts_MiSTer
|
||||
|
||||
# Version 1.0 - 2019-01-08 - First commit.
|
||||
|
||||
if [ ! -f "/media/fat/config/MiSTer.ini" ]
|
||||
then
|
||||
echo "Downloading MiSTer.ini"
|
||||
if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini"
|
||||
then
|
||||
echo "Unable to download"
|
||||
echo "MiSTer.ini"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak
|
||||
VIDEO_VALUE=7
|
||||
sed -i "1,/video_mode=[0-9]/{s/video_mode=[0-9]/video_mode=$VIDEO_VALUE/}" /media/fat/config/MiSTer.ini
|
||||
echo "video_mode=$VIDEO_VALUE"
|
||||
reboot now
|
||||
exit 0
|
||||
38
video_mode_720p60.sh
Normal file
38
video_mode_720p60.sh
Normal file
@@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
# Copyright 2019 Alessandro "Locutus73" Miele
|
||||
|
||||
# You can download the latest version of this script from:
|
||||
# https://github.com/MiSTer-devel/Scripts_MiSTer
|
||||
|
||||
# Version 1.0 - 2019-01-08 - First commit.
|
||||
|
||||
if [ ! -f "/media/fat/config/MiSTer.ini" ]
|
||||
then
|
||||
echo "Downloading MiSTer.ini"
|
||||
if ! curl -kL "https://github.com/MiSTer-devel/Main_MiSTer/blob/master/MiSTer.ini?raw=true" -o "/media/fat/config/MiSTer.ini"
|
||||
then
|
||||
echo "Unable to download"
|
||||
echo "MiSTer.ini"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
cp /media/fat/config/MiSTer.ini /media/fat/config/MiSTer.ini.bak
|
||||
VIDEO_VALUE=0
|
||||
sed -i "1,/video_mode=[0-9]/{s/video_mode=[0-9]/video_mode=$VIDEO_VALUE/}" /media/fat/config/MiSTer.ini
|
||||
echo "video_mode=$VIDEO_VALUE"
|
||||
reboot now
|
||||
exit 0
|
||||
Reference in New Issue
Block a user