Codice: Seleziona tutto
"Updating shared library links: /sbin/ldconfig &"
"Updating X font indexes: /usr/bin/fc-cache -f &"
"Updating icon-theme.cache in /usr/share/icons..."
"Updating gtk.immodules: gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules"
La risposta sembra essere no
infatti ho modificato lo script rc.M in questo modo
Codice: Seleziona tutto
# Update all the shared library links:
if [ -x /sbin/ldconfig -a -x /etc/rc.d/upgradeboot ]; then #hack_T
echo "Updating shared library links: /sbin/ldconfig &"
/sbin/ldconfig &
fi
# Update the X font indexes:
if [ -x /usr/bin/fc-cache -a -x /etc/rc.d/upgradeboot ]; then #hack_T
echo "Updating X font indexes: /usr/bin/fc-cache -f &"
/usr/bin/fc-cache -f &
fi
#hack_T
if [ -x /etc/rc.d/upgradeboot ]; then
# Update any existing icon cache files:
if find /usr/share/icons 2> /dev/null | grep -q icon-theme.cache ; then
for theme_dir in /usr/share/icons/* ; do
if [ -r ${theme_dir}/icon-theme.cache ]; then
echo "Updating icon-theme.cache in ${theme_dir}..."
/usr/bin/gtk-update-icon-cache -t -f ${theme_dir} 1> /dev/null 2> /dev/null
fi
done
# This would be a large file and probably shouldn't be there, but if it is
# then it must be kept updated, too:
if [ -r /usr/share/icons/icon-theme.cache ]; then
echo "Updating icon-theme.cache in /usr/share/icons..."
/usr/bin/gtk-update-icon-cache -t -f /usr/share/icons 1> /dev/null 2> /dev/null
fi
fi
# Update mime database:
if [ -x /usr/bin/update-mime-database -a -d /usr/share/mime ]; then
echo "Updating MIME database: /usr/bin/update-mime-database /usr/share/mime &"
/usr/bin/update-mime-database /usr/share/mime &
fi
fi
# SCIM and other GTK+ input methods like this file kept updated:
if [ -x /usr/bin/gtk-query-immodules-2.0 -a -x /etc/rc.d/upgradeboot ]; then #hack_T
echo "Updating gtk.immodules: gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules"
/usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules 2> /dev/null
fi
/etc/rc.d/upgradeboot
quindi
chmod +x /etc/rc.d/upgradeboot # slowboot
oppure
chmod -x /etc/rc.d/upgradeboot # fastboot
risparmiando una decina di secondi nei tempi di avvio.
Lo so che sono ridicoli e che ho sporcato lo script rc.M , ma non installo nuovo software molto spesso
cosa ne pensate?
EDIT : esattamente risparmio 18 secondi all'avvio e tutto sembra funzionare perfettamente

