<?xml version="1.0" encoding="UTF-8"?>
<doc>
	<back to="packages"/>
	<title>sync-disks</title>
	<section>
	
		<description>
			<para>
				Syncs the disks after important operations.
			</para>
		</description>
		<author>zxy</author>
		<dependencies>
			<item>
				<para>
					none
				</para>
			</item>
		</dependencies>
		<title>Installation</title>
		<section>
			<title>without paludis-hooks installed</title>
			<subsection>
				Just install the package.
				<code>paludis -i app-paludis/paludis-hooks-sync-disks</code>
			</subsection>
			<title>if you have paludis-hooks installed</title>
			<subsection>
				<para>
					Enable the <strong>sync-disks</strong> extended use flag in the <file>/etc/paludis/use.conf</file> file, by adding <strong>sync-disks</strong> to the line.<code>* PALUDIS_HOOKS: sync-disks .......</code>
				</para>
				<para>
					Then run:
					<code>paludis -i paludis-hooks --dl-reinstall if-use-changed</code>
				</para>
			</subsection>
		</section>
		<title>Enabling/Disabling the hook</title>
		<section>
			<para>
				To enable the hook you can use <strong>eselect</strong> with the command 
				<code>eselect paludis-hook enable sync-disks</code>
			</para>
			<para>
				To disable the hook you can use <strong>eselect</strong> just like the example above shows, but by changing <strong>enable</strong> to <strong>disable</strong> like this 
				<code>eselect paludis-hook disable sync-disks</code>
			</para>
			<para>
				See here <link href="eselect-paludis-hooks.xml" text="for help on eselect" /> with paludis support.
			</para>
		</section>
		<sources title="scripts">
			<item href="files/sync-disks.bash">hook script</item>
		</sources>
	
	</section>
</doc>
