#! /bin/sh

chown -R user:users /opt/sil
chmod 755 /opt/sil/sil /opt/sil/sil.sh

# patch xorg.conf

if [ -z "`cat /etc/X11/xorg.conf | grep FontPath`" ]; then

echo '

Section "Files"
	FontPath "/usr/share/fonts/X11/misc/:unscaled"
EndSection' >> /etc/X11/xorg.conf

fi

# The clock might be wrong and we know that we need to update the icon
# cache so we just force it.

gtk-update-icon-cache -f /usr/share/icons/hicolor

exit 0
