From 35d0176971e23c09fa9d0343fe3943369079500f Mon Sep 17 00:00:00 2001 From: Locutus73 Date: Tue, 8 Jan 2019 13:47:28 +0100 Subject: [PATCH] Version 1.0 --- cores_timestamp_off.sh | 38 ++++++++++++++++++++++++++++++++++++++ cores_timestamp_on.sh | 38 ++++++++++++++++++++++++++++++++++++++ scandoubler_off.sh | 38 ++++++++++++++++++++++++++++++++++++++ scandoubler_on.sh | 38 ++++++++++++++++++++++++++++++++++++++ vga_scaler_off.sh | 38 ++++++++++++++++++++++++++++++++++++++ vga_scaler_on.sh | 38 ++++++++++++++++++++++++++++++++++++++ video_info_off.sh | 38 ++++++++++++++++++++++++++++++++++++++ video_info_on.sh | 38 ++++++++++++++++++++++++++++++++++++++ video_mode_1080p50.sh | 38 ++++++++++++++++++++++++++++++++++++++ video_mode_1080p60.sh | 38 ++++++++++++++++++++++++++++++++++++++ video_mode_720p50.sh | 38 ++++++++++++++++++++++++++++++++++++++ video_mode_720p60.sh | 38 ++++++++++++++++++++++++++++++++++++++ 12 files changed, 456 insertions(+) create mode 100644 cores_timestamp_off.sh create mode 100644 cores_timestamp_on.sh create mode 100644 scandoubler_off.sh create mode 100644 scandoubler_on.sh create mode 100644 vga_scaler_off.sh create mode 100644 vga_scaler_on.sh create mode 100644 video_info_off.sh create mode 100644 video_info_on.sh create mode 100644 video_mode_1080p50.sh create mode 100644 video_mode_1080p60.sh create mode 100644 video_mode_720p50.sh create mode 100644 video_mode_720p60.sh diff --git a/cores_timestamp_off.sh b/cores_timestamp_off.sh new file mode 100644 index 0000000..3dde8cf --- /dev/null +++ b/cores_timestamp_off.sh @@ -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 . + +# 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 \ No newline at end of file diff --git a/cores_timestamp_on.sh b/cores_timestamp_on.sh new file mode 100644 index 0000000..16e9dd0 --- /dev/null +++ b/cores_timestamp_on.sh @@ -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 . + +# 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 \ No newline at end of file diff --git a/scandoubler_off.sh b/scandoubler_off.sh new file mode 100644 index 0000000..1723f35 --- /dev/null +++ b/scandoubler_off.sh @@ -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 . + +# 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 \ No newline at end of file diff --git a/scandoubler_on.sh b/scandoubler_on.sh new file mode 100644 index 0000000..8c0f625 --- /dev/null +++ b/scandoubler_on.sh @@ -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 . + +# 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 \ No newline at end of file diff --git a/vga_scaler_off.sh b/vga_scaler_off.sh new file mode 100644 index 0000000..09d6cea --- /dev/null +++ b/vga_scaler_off.sh @@ -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 . + +# 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 \ No newline at end of file diff --git a/vga_scaler_on.sh b/vga_scaler_on.sh new file mode 100644 index 0000000..a2ffcc0 --- /dev/null +++ b/vga_scaler_on.sh @@ -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 . + +# 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 \ No newline at end of file diff --git a/video_info_off.sh b/video_info_off.sh new file mode 100644 index 0000000..1eac925 --- /dev/null +++ b/video_info_off.sh @@ -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 . + +# 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 \ No newline at end of file diff --git a/video_info_on.sh b/video_info_on.sh new file mode 100644 index 0000000..fa594de --- /dev/null +++ b/video_info_on.sh @@ -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 . + +# 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 \ No newline at end of file diff --git a/video_mode_1080p50.sh b/video_mode_1080p50.sh new file mode 100644 index 0000000..80c7ad3 --- /dev/null +++ b/video_mode_1080p50.sh @@ -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 . + +# 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 \ No newline at end of file diff --git a/video_mode_1080p60.sh b/video_mode_1080p60.sh new file mode 100644 index 0000000..53436e1 --- /dev/null +++ b/video_mode_1080p60.sh @@ -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 . + +# 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 \ No newline at end of file diff --git a/video_mode_720p50.sh b/video_mode_720p50.sh new file mode 100644 index 0000000..4502054 --- /dev/null +++ b/video_mode_720p50.sh @@ -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 . + +# 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 \ No newline at end of file diff --git a/video_mode_720p60.sh b/video_mode_720p60.sh new file mode 100644 index 0000000..7150694 --- /dev/null +++ b/video_mode_720p60.sh @@ -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 . + +# 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 \ No newline at end of file