blob: 028a83c1dbf7c3e1c2b111adfe6b0ce522ed41a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
#!/bin/sh
if [ ! -d /etc/gconf/gconf.xml.system ]; then
mkdir -p /etc/gconf/gconf.xml.system
fi
chmod 755 /etc/gconf/gconf.xml.system
# sauvegarde l'inittab
cp /etc/inittab /etc/inittab.bak
# modifie l'inittab pour booter automatiquement sous GDM
sed -i "s/^id:[3-5]/id:4/" /etc/inittab
sed -i "s/lxdm/gdm/" /etc/inittab
# glib schemas
/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
# desktop database
update-desktop-database > /dev/null
# update icons cache
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
# mime database
update-mime-database /usr/share/mime > /dev/null
# gconf schemas
for port in `pkginfo -i |awk '{print $1}'`
do
SCHEMA="`pkginfo -l $port | grep usr/share/gconf/schemas`"
[[ "$SCHEMA" != "" ]] && gconfpkg --install $port
SCHEMAS="`pkginfo -l $port | grep etc/gconf/schemas/.*\.schemas$`"
for SCHEMA in $SCHEMAS
do
export GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source`
/usr/bin/gconftool-2 --makefile-install-rule /$SCHEMA > /dev/null
done
done
# scrolls
for port in `pkginfo -i |awk '{print $1}'`
do
SCROLLS="`pkginfo -l $port | grep usr/share/omf/.*\.omf$`"
for SCROLL in $SCROLLS
do
/usr/bin/scrollkeeper-install -q -p /var/lib/scrollkeeper /$SCROLL > /dev/null
done
done
|