<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.froelix.com/index.php?action=history&amp;feed=atom&amp;title=Adding_custom_entries_to_GRUB_2</id>
		<title>Adding custom entries to GRUB 2 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.froelix.com/index.php?action=history&amp;feed=atom&amp;title=Adding_custom_entries_to_GRUB_2"/>
		<link rel="alternate" type="text/html" href="https://wiki.froelix.com/index.php?title=Adding_custom_entries_to_GRUB_2&amp;action=history"/>
		<updated>2026-04-06T22:50:41Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.25.1</generator>

	<entry>
		<id>https://wiki.froelix.com/index.php?title=Adding_custom_entries_to_GRUB_2&amp;diff=30&amp;oldid=prev</id>
		<title>Froelix: Created page with 'The configuration files of the bootloader ''GRUB 2'' are located in the folder ''/etc/grub.d/''. To add custom entries to the bootloader, the file ''40_custom'' has to be modifie…'</title>
		<link rel="alternate" type="text/html" href="https://wiki.froelix.com/index.php?title=Adding_custom_entries_to_GRUB_2&amp;diff=30&amp;oldid=prev"/>
				<updated>2010-08-28T23:06:50Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;The configuration files of the bootloader &amp;#039;&amp;#039;GRUB 2&amp;#039;&amp;#039; are located in the folder &amp;#039;&amp;#039;/etc/grub.d/&amp;#039;&amp;#039;. To add custom entries to the bootloader, the file &amp;#039;&amp;#039;40_custom&amp;#039;&amp;#039; has to be modifie…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The configuration files of the bootloader ''GRUB 2'' are located in the folder ''/etc/grub.d/''. To add custom entries to the bootloader, the file ''40_custom'' has to be modified. Following the unmodified version of this file is shown.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 exec tail -n +3 $0&lt;br /&gt;
 # This file provides an easy way to add custom menu entries.  Simply type the&lt;br /&gt;
 # menu entries you want to add after this comment.  Be careful not to change&lt;br /&gt;
 # the 'exec tail' line above.&lt;br /&gt;
&lt;br /&gt;
Custom menu entries can be added to the end of this file. An examplary modification of the file ''40_custom'', with two entries to reboot or halt the system, is shown below.&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 echo &amp;quot;Adding custom menu entries.&amp;quot; &amp;gt;&amp;amp;2&lt;br /&gt;
 exec tail -n +3 $0&lt;br /&gt;
 # This file provides an easy way to add custom menu entries.  Simply type the&lt;br /&gt;
 # menu entries you want to add after this comment.  Be careful not to change&lt;br /&gt;
 # the 'exec tail' line above.&lt;br /&gt;
 &lt;br /&gt;
 menuentry &amp;quot;Reboot System&amp;quot; {&lt;br /&gt;
 reboot&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 menuentry &amp;quot;Halt System&amp;quot; {&lt;br /&gt;
 halt&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
To take effect the changes you have to run the command ''update-grub'' as root.&lt;/div&gt;</summary>
		<author><name>Froelix</name></author>	</entry>

	</feed>