10 if [ ! -d "$CHROOT" ] ; then
13 # if [ -f "$CHROOT$TSTFILE" ] || [ ! "x`/sbin/debian echo hello | grep hello`" = "x" ] ; then
15 # export YESCHROOT='yes'
19 # I sincerely apologise for the following ugly kludge that
20 # restores all previous settings.
22 if [ -f "/home/user/.chroot.orig" ] ; then
23 cp /home/user/.chroot.orig /home/user/.chroot
24 export UPGRD="upgrade"
27 # if [ -f "/home/user/.Xmodmap-keymap.orig" ] ; then
28 # mv /home/user/.Xmodmap-keymap.orig /home/user/.Xmodmap-keymap
29 # export UPGRD="upgrade"
32 if [ -f "/home/user/.xbindkeysrc.orig" ] ; then
33 rm /home/user/.xbindkeysrc.orig
34 # mv /home/user/.xbindkeysrc.orig /home/user/.xbindkeysrc
37 if [ -f "/home/user/.gimp-2.6/gimprc.orig" ] ; then
38 mv /home/user/.gimp-2.6/gimprc.orig /home/user/.gimp-2.6/gimprc
41 if [ -f "/home/user/.gimp-2.6/sessionrc.orig" ] ; then
42 mv /home/user/.gimp-2.6/sessionrc.orig /home/user/.gimp-2.6/sessionrc
45 if [ -f "/home/user/.config/lxde/config.orig" ] ; then
46 mv /home/user/.config/lxde/config.orig /home/user/.config/lxde/config
49 if [ -f "/home/user/.config/lxpanel/LXDE/config.orig" ] ; then
50 mv /home/user/.config/lxpanel/LXDE/config.orig /home/user/.config/lxpanel/LXDE/config
53 if [ -f "/home/user/.config/lxpanel/LXDE/panels/panel.orig" ] ; then
54 mv /home/user/.config/lxpanel/LXDE/panels/panel.orig /home/user/.config/lxpanel/LXDE/panels/panel
57 if [ -f "/home/user/.config/lxpanel/LXDE/panels/top.orig" ] ; then
58 rm /home/user/.config/lxpanel/LXDE/panels/top.orig
59 # mv /home/user/.config/lxpanel/LXDE/panels/top.orig /home/user/.config/lxpanel/LXDE/panels/top
62 # if [ -f "/home/user/.config/gtk-2.0/gtkfilechooser.ini.orig" ] ; then
63 # mv /home/user/.config/gtk-2.0/gtkfilechooser.ini.orig /home/user/.config/gtk-2.0/gtkfilechooser.ini
66 # Fix permissions; another kludge.
68 chown -R user:users /home/user/img-install
69 chown -R user:users /home/user/.chroot
70 chown -R user:users /home/user/.config
71 chown -R user:users /home/user/.gimp-2.6
72 chown user:users /home/user/.gtkrc-2.0
74 # chown -R user:users /home/user/apps
75 # chown -R user:users /home/user/.matchbox
76 # chown user:users /home/user/.Xmodmap-keymap
77 chown user:users /home/user/.xbindkeysrc
79 # yet another kludge; detect an upgrade
81 if [ "x$UPGRD" = "x" ] ; then
82 touch /home/user/.synchroot
83 chown -R user:users /home/user/.synchroot
88 if [ ! -e "/usr/share/icons/hicolor/scalable/hildon/abiword.png" ] ; then
89 cp /usr/share/icons/hicolor/scalable/hildon/abiword-debian.png /usr/share/icons/hicolor/scalable/hildon/abiword.png
92 if [ ! -e "/usr/share/icons/hicolor/scalable/hildon/deblet-easydeb.png" ] ; then
93 cp /usr/share/icons/hicolor/scalable/hildon/deblet-easydeb.png /usr/share/icons/hicolor/scalable/hildon/deblet.png
96 # this takes a while; that's why it's at the end...
97 # gtk-update-icon-cache -f /usr/share/icons/hicolor
99 if [ "x$UPGRD" = "x" ] ; then
100 export MSG1=`printf "\
101 In order to use this package, you must download and\n\
102 install a very large image file. If you are unsure about\n\
103 how to do this, and / or you just want the current set of\n\
104 Debian applications (OpenOffice, GIMP & Firefox 3 w/ java),\n\
105 use the Deb Img Install in the menu.\n\
106 This program will download and install the image file to\n\
107 MyDocs or a microSD card. You will need at least 2.5 GB free\n\
108 there. After you download the image, you can move it elsewhere.\n\
109 After moving the file, you may need to edit the .chroot file \n\
110 as explained on talk.maemo.org.\n\
111 If you have run any Debian apps, be sure to issue\n\
113 in the terminal (or just reboot) before moving the image file.\n"`
115 gxmessage -center -alignbuttons center -buttons OK:0 -geometry 690x380 -title "NOTICE" "$MSG1"