<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.fmods.net/index.php?action=history&amp;feed=atom&amp;title=Autoinstall.sh</id>
	<title>Autoinstall.sh - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.fmods.net/index.php?action=history&amp;feed=atom&amp;title=Autoinstall.sh"/>
	<link rel="alternate" type="text/html" href="https://wiki.fmods.net/index.php?title=Autoinstall.sh&amp;action=history"/>
	<updated>2026-07-21T09:58:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wiki.fmods.net/index.php?title=Autoinstall.sh&amp;diff=108&amp;oldid=prev</id>
		<title>Kolkman at 14:30, 16 July 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.fmods.net/index.php?title=Autoinstall.sh&amp;diff=108&amp;oldid=prev"/>
		<updated>2024-07-16T14:30:37Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:30, 16 July 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l6&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* As you can see the first character is a #. That character can be used to add information to a script without being executed (but it can be interpreted, like offering the she-bang script language).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* As you can see the first character is a #. That character can be used to add information to a script without being executed (but it can be interpreted, like offering the she-bang script language).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* For most Mods an Apps a section is used at the top of the script that is commented out (starting with #) to show some nice fmods information.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* For most Mods an Apps a section is used at the top of the script that is commented out (starting with #) to show some nice fmods information.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* After that it is common to declare some general Mod information and environment variables that are used in the script. Example Mod Information: &amp;lt;code&amp;gt;# Mod Name      : QuickDial Top-10 Contacts Mod ( QUICKDIAL_CONTACTS ).&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Author        : Pascal Kolkman.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Creation date : 2024-07-14.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Version       : 1.0.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Update date   : 2024-07-14.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Update notes  : First version.&amp;lt;/code&amp;gt;Example  Environment variables: &amp;lt;code&amp;gt;########################################################################################################################&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;#   DO NOT EDIT THIS BLOCK.                                                                                            #&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;#   Environment variables. MODNAME.                                                                                    #&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;########################################################################################################################&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;# Feel free to delete unnecessary Env. vars&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;FILES_DIR=&quot;/fs/usb0/SyncMyMod/files&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;# BIN_DIR=&quot;${FILES_DIR}/bin&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;PATCH_DIR=&quot;${FILES_DIR}/patch&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;SHELL_DIR=&quot;${FILES_DIR}/shell&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;OTHER_DIR=&quot;${FILES_DIR}/other&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;BACKUP_DIR=&quot;${OTHER_DIR}/backup&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;NEW_DIR=&quot;${OTHER_DIR}/new&quot;&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* After that it is common to declare some general Mod information and environment variables that are used in the script.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* &lt;/ins&gt;Example Mod Information&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;''&lt;/ins&gt;:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;''  ''&lt;/ins&gt;&amp;lt;code&amp;gt;# Mod Name      : QuickDial Top-10 Contacts Mod ( QUICKDIAL_CONTACTS ).&amp;lt;/code&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'' ''&lt;/ins&gt;&amp;lt;code&amp;gt;# Author        : Pascal Kolkman.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Creation date : 2024-07-14.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Version       : 1.0.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Update date   : 2024-07-14.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Update notes  : First version.&amp;lt;/code&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;''&lt;/ins&gt;Example   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* Example &lt;/ins&gt;Environment variables: &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;''&lt;/ins&gt;&amp;lt;code&amp;gt;########################################################################################################################&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;#   DO NOT EDIT THIS BLOCK.                                                                                            #&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;#   Environment variables. MODNAME.                                                                                    #&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;########################################################################################################################&amp;lt;/code&amp;gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;'' &lt;/ins&gt; &amp;lt;code&amp;gt;# Feel free to delete unnecessary Env. vars&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;FILES_DIR=&quot;/fs/usb0/SyncMyMod/files&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;# BIN_DIR=&quot;${FILES_DIR}/bin&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;PATCH_DIR=&quot;${FILES_DIR}/patch&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;SHELL_DIR=&quot;${FILES_DIR}/shell&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;OTHER_DIR=&quot;${FILES_DIR}/other&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;BACKUP_DIR=&quot;${OTHER_DIR}/backup&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;NEW_DIR=&quot;${OTHER_DIR}/new&quot;&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The MODNAME variable is used to add information about the Mod to Sync3.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The MODNAME variable is used to add information about the Mod to Sync3.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* After the environment section, there is a section with functions that are called. They are used to display stuff, like text and images&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* After the environment section, there is a section with functions that are called. They are used to display stuff, like text and images&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Below that a section is offered in whcih is checked if FMOdsTools is insatlled (or before: Modstools). It should containg code like:  &amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;if ! grep -q &amp;quot;${MODTOOLS}&amp;quot; /fs/rwdata/dev/mods_tools.txt; then&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    displayMessage &amp;quot;FMods Tools not found. Installation aborted.&amp;quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    else&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;   &amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    LINE=$(grep &amp;quot;$MODTOOLS&amp;quot; /fs/rwdata/dev/mods_tools.txt)&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    MODS_TOOLS_VERSION=$(echo &amp;quot;$LINE&amp;quot; | awk -F'_' '{print $NF}')&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;   &amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    if ! awk 'BEGIN {exit !('&amp;quot;$MODS_TOOLS_VERSION&amp;quot;' &amp;gt;= '&amp;quot;$MIN_MODTOOLS_VERSION&amp;quot;') }'; then&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;        displayMessage &amp;quot;FMods Tools ${MIN_MODTOOLS_VERSION} or higher not found. Installation aborted.&amp;quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    fi&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;fi&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Below that a section is offered in whcih is checked if FMOdsTools is insatlled (or before: Modstools). It should containg code like:  &amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;if ! grep -q &amp;quot;${MODTOOLS}&amp;quot; /fs/rwdata/dev/mods_tools.txt; then&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    displayMessage &amp;quot;FMods Tools not found. Installation aborted.&amp;quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    else&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;   &amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    LINE=$(grep &amp;quot;$MODTOOLS&amp;quot; /fs/rwdata/dev/mods_tools.txt)&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    MODS_TOOLS_VERSION=$(echo &amp;quot;$LINE&amp;quot; | awk -F'_' '{print $NF}')&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;   &amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    if ! awk 'BEGIN {exit !('&amp;quot;$MODS_TOOLS_VERSION&amp;quot;' &amp;gt;= '&amp;quot;$MIN_MODTOOLS_VERSION&amp;quot;') }'; then&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;        displayMessage &amp;quot;FMods Tools ${MIN_MODTOOLS_VERSION} or higher not found. Installation aborted.&amp;quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    fi&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;fi&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kolkman</name></author>
	</entry>
	<entry>
		<id>https://wiki.fmods.net/index.php?title=Autoinstall.sh&amp;diff=107&amp;oldid=prev</id>
		<title>Kolkman at 14:28, 16 July 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.fmods.net/index.php?title=Autoinstall.sh&amp;diff=107&amp;oldid=prev"/>
		<updated>2024-07-16T14:28:09Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:28, 16 July 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l6&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* As you can see the first character is a #. That character can be used to add information to a script without being executed (but it can be interpreted, like offering the she-bang script language).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* As you can see the first character is a #. That character can be used to add information to a script without being executed (but it can be interpreted, like offering the she-bang script language).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* For most Mods an Apps a section is used at the top of the script that is commented out (starting with #) to show some nice fmods information.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* For most Mods an Apps a section is used at the top of the script that is commented out (starting with #) to show some nice fmods information.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* After that it is common to declare some general Mod information and environment variables that are used in the script. Example Mod Information: &amp;lt;code&amp;gt;# Mod Name      : QuickDial Top-10 Contacts Mod ( QUICKDIAL_CONTACTS ).&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Author        : Pascal Kolkman.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Creation date : 2024-07-14.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Version       : 1.0.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Update date   : 2024-07-14.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Update notes  : First version.&amp;lt;/code&amp;gt;Example Environment variables: &amp;lt;code&amp;gt;########################################################################################################################&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;#   DO NOT EDIT THIS BLOCK.                                                                                            #&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;#   Environment variables. MODNAME.                                                                                    #&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;########################################################################################################################&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;# Feel free to delete unnecessary Env. vars&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;FILES_DIR=&quot;/fs/usb0/SyncMyMod/files&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;# BIN_DIR=&quot;${FILES_DIR}/bin&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;PATCH_DIR=&quot;${FILES_DIR}/patch&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;SHELL_DIR=&quot;${FILES_DIR}/shell&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;OTHER_DIR=&quot;${FILES_DIR}/other&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;BACKUP_DIR=&quot;${OTHER_DIR}/backup&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;NEW_DIR=&quot;${OTHER_DIR}/new&quot;&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* After that it is common to declare some general Mod information and environment variables that are used in the script. Example Mod Information: &amp;lt;code&amp;gt;# Mod Name      : QuickDial Top-10 Contacts Mod ( QUICKDIAL_CONTACTS ).&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Author        : Pascal Kolkman.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Creation date : 2024-07-14.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Version       : 1.0.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Update date   : 2024-07-14.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Update notes  : First version.&amp;lt;/code&amp;gt;Example &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;Environment variables: &amp;lt;code&amp;gt;########################################################################################################################&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;#   DO NOT EDIT THIS BLOCK.                                                                                            #&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;#   Environment variables. MODNAME.                                                                                    #&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;########################################################################################################################&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;# Feel free to delete unnecessary Env. vars&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;FILES_DIR=&quot;/fs/usb0/SyncMyMod/files&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;# BIN_DIR=&quot;${FILES_DIR}/bin&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;PATCH_DIR=&quot;${FILES_DIR}/patch&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;SHELL_DIR=&quot;${FILES_DIR}/shell&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;OTHER_DIR=&quot;${FILES_DIR}/other&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;BACKUP_DIR=&quot;${OTHER_DIR}/backup&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;NEW_DIR=&quot;${OTHER_DIR}/new&quot;&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The MODNAME variable is used to add information about the Mod to Sync3.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The MODNAME variable is used to add information about the Mod to Sync3.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* After the environment section, there is a section with functions that are called. They are used to display stuff, like text and images&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* After the environment section, there is a section with functions that are called. They are used to display stuff, like text and images&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Below that a section is offered in whcih is checked if FMOdsTools is insatlled (or before: Modstools). It should containg code like:  &amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;if ! grep -q &amp;quot;${MODTOOLS}&amp;quot; /fs/rwdata/dev/mods_tools.txt; then&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    displayMessage &amp;quot;FMods Tools not found. Installation aborted.&amp;quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    else&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;   &amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    LINE=$(grep &amp;quot;$MODTOOLS&amp;quot; /fs/rwdata/dev/mods_tools.txt)&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    MODS_TOOLS_VERSION=$(echo &amp;quot;$LINE&amp;quot; | awk -F'_' '{print $NF}')&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;   &amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    if ! awk 'BEGIN {exit !('&amp;quot;$MODS_TOOLS_VERSION&amp;quot;' &amp;gt;= '&amp;quot;$MIN_MODTOOLS_VERSION&amp;quot;') }'; then&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;        displayMessage &amp;quot;FMods Tools ${MIN_MODTOOLS_VERSION} or higher not found. Installation aborted.&amp;quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    fi&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;fi&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Below that a section is offered in whcih is checked if FMOdsTools is insatlled (or before: Modstools). It should containg code like:  &amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;if ! grep -q &amp;quot;${MODTOOLS}&amp;quot; /fs/rwdata/dev/mods_tools.txt; then&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    displayMessage &amp;quot;FMods Tools not found. Installation aborted.&amp;quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    else&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;   &amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    LINE=$(grep &amp;quot;$MODTOOLS&amp;quot; /fs/rwdata/dev/mods_tools.txt)&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    MODS_TOOLS_VERSION=$(echo &amp;quot;$LINE&amp;quot; | awk -F'_' '{print $NF}')&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;   &amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    if ! awk 'BEGIN {exit !('&amp;quot;$MODS_TOOLS_VERSION&amp;quot;' &amp;gt;= '&amp;quot;$MIN_MODTOOLS_VERSION&amp;quot;') }'; then&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;        displayMessage &amp;quot;FMods Tools ${MIN_MODTOOLS_VERSION} or higher not found. Installation aborted.&amp;quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    fi&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;fi&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kolkman</name></author>
	</entry>
	<entry>
		<id>https://wiki.fmods.net/index.php?title=Autoinstall.sh&amp;diff=106&amp;oldid=prev</id>
		<title>Kolkman at 14:27, 16 July 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.fmods.net/index.php?title=Autoinstall.sh&amp;diff=106&amp;oldid=prev"/>
		<updated>2024-07-16T14:27:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:27, 16 July 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l6&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* As you can see the first character is a #. That character can be used to add information to a script without being executed (but it can be interpreted, like offering the she-bang script language).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* As you can see the first character is a #. That character can be used to add information to a script without being executed (but it can be interpreted, like offering the she-bang script language).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* For most Mods an Apps a section is used at the top of the script that is commented out (starting with #) to show some nice fmods information.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* For most Mods an Apps a section is used at the top of the script that is commented out (starting with #) to show some nice fmods information.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* After that it is common to declare some general Mod information and environment variables that are used in the script. Example Mod Information: &amp;lt;code&amp;gt;# Mod Name      : QuickDial Top-10 Contacts Mod ( QUICKDIAL_CONTACTS ).&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Author        : Pascal Kolkman.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Creation date : 2024-07-14.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Version       : 1.0.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Update date   : 2024-07-14.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Update notes  : First version.&amp;lt;/code&amp;gt;Example Environment variables: &amp;lt;code&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;#################################################&lt;/del&gt;########################################################################################################################&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt;#   DO NOT EDIT THIS BLOCK. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                                                &lt;/del&gt;                                                                                            #&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;#   Environment variables. MODNAME. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;                                                &lt;/del&gt;                                                                                    #&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;#################################################&lt;/del&gt;########################################################################################################################&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;# Feel free to delete unnecessary Env. vars&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;FILES_DIR=&quot;/fs/usb0/SyncMyMod/files&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;# BIN_DIR=&quot;${FILES_DIR}/bin&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;PATCH_DIR=&quot;${FILES_DIR}/patch&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;SHELL_DIR=&quot;${FILES_DIR}/shell&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;OTHER_DIR=&quot;${FILES_DIR}/other&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;BACKUP_DIR=&quot;${OTHER_DIR}/backup&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;NEW_DIR=&quot;${OTHER_DIR}/new&quot;&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* After that it is common to declare some general Mod information and environment variables that are used in the script. Example Mod Information: &amp;lt;code&amp;gt;# Mod Name      : QuickDial Top-10 Contacts Mod ( QUICKDIAL_CONTACTS ).&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Author        : Pascal Kolkman.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Creation date : 2024-07-14.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Version       : 1.0.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Update date   : 2024-07-14.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Update notes  : First version.&amp;lt;/code&amp;gt;Example Environment variables: &amp;lt;code&amp;gt;########################################################################################################################&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;#   DO NOT EDIT THIS BLOCK.                                                                                            #&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;#   Environment variables. MODNAME.                                                                                    #&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;########################################################################################################################&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;# Feel free to delete unnecessary Env. vars&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;FILES_DIR=&quot;/fs/usb0/SyncMyMod/files&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;# BIN_DIR=&quot;${FILES_DIR}/bin&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;PATCH_DIR=&quot;${FILES_DIR}/patch&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;SHELL_DIR=&quot;${FILES_DIR}/shell&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;OTHER_DIR=&quot;${FILES_DIR}/other&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;BACKUP_DIR=&quot;${OTHER_DIR}/backup&quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;NEW_DIR=&quot;${OTHER_DIR}/new&quot;&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The MODNAME variable is used to add information about the Mod to Sync3.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* The MODNAME variable is used to add information about the Mod to Sync3.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* After the environment section, there is a section with functions that are called. They are used to display stuff, like text and images&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* After the environment section, there is a section with functions that are called. They are used to display stuff, like text and images&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Below that a section is offered in whcih is checked if FMOdsTools is insatlled (or before: Modstools). It should containg code like:  &amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;if ! grep -q &amp;quot;${MODTOOLS}&amp;quot; /fs/rwdata/dev/mods_tools.txt; then&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    displayMessage &amp;quot;FMods Tools not found. Installation aborted.&amp;quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    else&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;   &amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    LINE=$(grep &amp;quot;$MODTOOLS&amp;quot; /fs/rwdata/dev/mods_tools.txt)&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    MODS_TOOLS_VERSION=$(echo &amp;quot;$LINE&amp;quot; | awk -F'_' '{print $NF}')&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;   &amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    if ! awk 'BEGIN {exit !('&amp;quot;$MODS_TOOLS_VERSION&amp;quot;' &amp;gt;= '&amp;quot;$MIN_MODTOOLS_VERSION&amp;quot;') }'; then&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;        displayMessage &amp;quot;FMods Tools ${MIN_MODTOOLS_VERSION} or higher not found. Installation aborted.&amp;quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    fi&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;fi&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Below that a section is offered in whcih is checked if FMOdsTools is insatlled (or before: Modstools). It should containg code like:  &amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;if ! grep -q &amp;quot;${MODTOOLS}&amp;quot; /fs/rwdata/dev/mods_tools.txt; then&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    displayMessage &amp;quot;FMods Tools not found. Installation aborted.&amp;quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    else&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;   &amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    LINE=$(grep &amp;quot;$MODTOOLS&amp;quot; /fs/rwdata/dev/mods_tools.txt)&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    MODS_TOOLS_VERSION=$(echo &amp;quot;$LINE&amp;quot; | awk -F'_' '{print $NF}')&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;   &amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    if ! awk 'BEGIN {exit !('&amp;quot;$MODS_TOOLS_VERSION&amp;quot;' &amp;gt;= '&amp;quot;$MIN_MODTOOLS_VERSION&amp;quot;') }'; then&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;        displayMessage &amp;quot;FMods Tools ${MIN_MODTOOLS_VERSION} or higher not found. Installation aborted.&amp;quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    fi&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;fi&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* &amp;lt;br /&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kolkman</name></author>
	</entry>
	<entry>
		<id>https://wiki.fmods.net/index.php?title=Autoinstall.sh&amp;diff=105&amp;oldid=prev</id>
		<title>Kolkman: Created page with &quot;'''General'''  As explained on the previous page, a file called autoinstall.sh is used to instruct Sync 3 which commands need to be executed. The language used in this file is bash/shell. You can find a lot about in on the internet but below are some useful subjects:  * The first line of the autoinstall.sh of a Mod or App always starts with a so called &quot;she-bang&quot;: #!/bin/sh  It is used to tell the interpreter which scripting language is offered. In this case it is bash/s...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.fmods.net/index.php?title=Autoinstall.sh&amp;diff=105&amp;oldid=prev"/>
		<updated>2024-07-16T14:25:38Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;General&amp;#039;&amp;#039;&amp;#039;  As explained on the previous page, a file called autoinstall.sh is used to instruct Sync 3 which commands need to be executed. The language used in this file is bash/shell. You can find a lot about in on the internet but below are some useful subjects:  * The first line of the autoinstall.sh of a Mod or App always starts with a so called &amp;quot;she-bang&amp;quot;: #!/bin/sh  It is used to tell the interpreter which scripting language is offered. In this case it is bash/s...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''General'''&lt;br /&gt;
&lt;br /&gt;
As explained on the previous page, a file called autoinstall.sh is used to instruct Sync 3 which commands need to be executed. The language used in this file is bash/shell. You can find a lot about in on the internet but below are some useful subjects:&lt;br /&gt;
&lt;br /&gt;
* The first line of the autoinstall.sh of a Mod or App always starts with a so called &amp;quot;she-bang&amp;quot;: #!/bin/sh  It is used to tell the interpreter which scripting language is offered. In this case it is bash/shell. Useful sources for bash/shell online are: https://linuxconfig.org/bash-scripting-tutorial and https://www.freecodecamp.org/news/shell-scripting-crash-course-how-to-write-bash-scripts-in-linux/&lt;br /&gt;
* As you can see the first character is a #. That character can be used to add information to a script without being executed (but it can be interpreted, like offering the she-bang script language).&lt;br /&gt;
* For most Mods an Apps a section is used at the top of the script that is commented out (starting with #) to show some nice fmods information.&lt;br /&gt;
* After that it is common to declare some general Mod information and environment variables that are used in the script. Example Mod Information: &amp;lt;code&amp;gt;# Mod Name      : QuickDial Top-10 Contacts Mod ( QUICKDIAL_CONTACTS ).&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Author        : Pascal Kolkman.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Creation date : 2024-07-14.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Version       : 1.0.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Update date   : 2024-07-14.&amp;lt;/code&amp;gt;&amp;lt;code&amp;gt;# Update notes  : First version.&amp;lt;/code&amp;gt;Example Environment variables: &amp;lt;code&amp;gt;#########################################################################################################################################################################&amp;lt;/code&amp;gt; &amp;lt;code&amp;gt;#   DO NOT EDIT THIS BLOCK.                                                                                                                                             #&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;#   Environment variables. MODNAME.                                                                                                                                     #&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;#########################################################################################################################################################################&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;# Feel free to delete unnecessary Env. vars&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;FILES_DIR=&amp;quot;/fs/usb0/SyncMyMod/files&amp;quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;# BIN_DIR=&amp;quot;${FILES_DIR}/bin&amp;quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;PATCH_DIR=&amp;quot;${FILES_DIR}/patch&amp;quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;SHELL_DIR=&amp;quot;${FILES_DIR}/shell&amp;quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;OTHER_DIR=&amp;quot;${FILES_DIR}/other&amp;quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;BACKUP_DIR=&amp;quot;${OTHER_DIR}/backup&amp;quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;NEW_DIR=&amp;quot;${OTHER_DIR}/new&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
* The MODNAME variable is used to add information about the Mod to Sync3.&lt;br /&gt;
* After the environment section, there is a section with functions that are called. They are used to display stuff, like text and images&lt;br /&gt;
* Below that a section is offered in whcih is checked if FMOdsTools is insatlled (or before: Modstools). It should containg code like:  &amp;lt;br /&amp;gt;&amp;lt;code&amp;gt;if ! grep -q &amp;quot;${MODTOOLS}&amp;quot; /fs/rwdata/dev/mods_tools.txt; then&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    displayMessage &amp;quot;FMods Tools not found. Installation aborted.&amp;quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    else&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;   &amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    LINE=$(grep &amp;quot;$MODTOOLS&amp;quot; /fs/rwdata/dev/mods_tools.txt)&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    MODS_TOOLS_VERSION=$(echo &amp;quot;$LINE&amp;quot; | awk -F'_' '{print $NF}')&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;   &amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    if ! awk 'BEGIN {exit !('&amp;quot;$MODS_TOOLS_VERSION&amp;quot;' &amp;gt;= '&amp;quot;$MIN_MODTOOLS_VERSION&amp;quot;') }'; then&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;        displayMessage &amp;quot;FMods Tools ${MIN_MODTOOLS_VERSION} or higher not found. Installation aborted.&amp;quot;&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;    fi&amp;lt;/code&amp;gt;  &amp;lt;code&amp;gt;fi&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kolkman</name></author>
	</entry>
</feed>