#!/bin/sh
-set -e
+closechroot
-CHROOT=/debian
+# set -e
+
+CHROOT=/.debian
TSTFILE=/usr/bin/hilda
+
if [ ! -d "$CHROOT" ] ; then
- mkdir /debian
+ mkdir /.debian
# else
# if [ -f "$CHROOT$TSTFILE" ] || [ ! "x`/sbin/debian echo hello | grep hello`" = "x" ] ; then
# closechroot
# export UPGRD="upgrade"
# fi
-#if [ -f "/home/user/.xbindkeysrc.scm.orig" ] ; then
-# mv /home/user/.xbindkeysrc.scm.orig /home/user/.xbindkeysrc.scm
-#fi
+if [ -f "/home/user/.xbindkeysrc.orig" ] ; then
+ rm /home/user/.xbindkeysrc.orig
+# mv /home/user/.xbindkeysrc.orig /home/user/.xbindkeysrc
+fi
if [ -f "/home/user/.gimp-2.6/gimprc.orig" ] ; then
mv /home/user/.gimp-2.6/gimprc.orig /home/user/.gimp-2.6/gimprc
mv /home/user/.gimp-2.6/sessionrc.orig /home/user/.gimp-2.6/sessionrc
fi
-# if [ -f "/home/user/.config/lxde/config.orig" ] ; then
-# mv /home/user/.config/lxde/config.orig /home/user/.config/lxde/config
-# fi
+if [ -f "/home/user/.config/lxde/config.orig" ] ; then
+ mv /home/user/.config/lxde/config.orig /home/user/.config/lxde/config
+fi
-# if [ -f "/home/user/.config/lxpanel/LXDE/config.orig" ] ; then
-# mv /home/user/.config/lxpanel/LXDE/config.orig /home/user/.config/lxpanel/LXDE/config
-# fi
+if [ -f "/home/user/.config/lxpanel/LXDE/config.orig" ] ; then
+ mv /home/user/.config/lxpanel/LXDE/config.orig /home/user/.config/lxpanel/LXDE/config
+fi
-# if [ -f "/home/user/.config/lxpanel/LXDE/panels/panel.orig" ] ; then
-# mv /home/user/.config/lxpanel/LXDE/panels/panel.orig /home/user/.config/lxpanel/LXDE/panels/panel
-# fi
+if [ -f "/home/user/.config/lxpanel/LXDE/panels/panel.orig" ] ; then
+ mv /home/user/.config/lxpanel/LXDE/panels/panel.orig /home/user/.config/lxpanel/LXDE/panels/panel
+fi
+
+if [ -f "/home/user/.config/lxpanel/LXDE/panels/top.orig" ] ; then
+ rm /home/user/.config/lxpanel/LXDE/panels/top.orig
+# mv /home/user/.config/lxpanel/LXDE/panels/top.orig /home/user/.config/lxpanel/LXDE/panels/top
+fi
# if [ -f "/home/user/.config/gtk-2.0/gtkfilechooser.ini.orig" ] ; then
# mv /home/user/.config/gtk-2.0/gtkfilechooser.ini.orig /home/user/.config/gtk-2.0/gtkfilechooser.ini
# chown -R user:users /home/user/apps
# chown -R user:users /home/user/.matchbox
# chown user:users /home/user/.Xmodmap-keymap
-# chown user:users /home/user/.xbindkeysrc.scm
+chown user:users /home/user/.xbindkeysrc
# yet another kludge; detect an upgrade
fi
# this takes a while; that's why it's at the end...
-gtk-update-icon-cache -f /usr/share/icons/hicolor
-
-if [ "x$UPGRD" != "x" ] ; then
- export MSG1=`printf "\
-This update fixes keyboard issues in LXDE under Fremantle.\n\n\
-If you want the new features, make sure you close your chroot, \n\
-delete the current image if you need the space, then use \n\
-the installer to download the new image file. \n\n\
-Note: You don't need to replace your current image file."`
-else
+# gtk-update-icon-cache -f /usr/share/icons/hicolor
+
+if [ "x$UPGRD" = "x" ] ; then
export MSG1=`printf "\
In order to use this package, you must download and\n\
install a very large image file. If you are unsure about\n\
how to do this, and / or you just want the current set of\n\
Debian applications (OpenOffice, GIMP & Firefox 3 w/ java),\n\
-use the Debian Image Installer in the Extras menu.\n\
+use the Deb Img Install in the menu.\n\
This program will download and install the image file to\n\
-one of your SD cards. You will need at least 1.5 GB free on that\n\
-card. After you download the image, you can move it elsewhere.\n\
+MyDocs or a microSD card. You will need at least 2.5 GB free\n\
+there. After you download the image, you can move it elsewhere.\n\
After moving the file, you may need to edit the .chroot file \n\
-as explained on ITt.\n\
+as explained on talk.maemo.org.\n\
If you have run any Debian apps, be sure to issue\n\
sudo closechroot\n\
in the terminal (or just reboot) before moving the image file.\n"`
-fi
+
gxmessage -center -alignbuttons center -buttons OK:0 -geometry 690x380 -title "NOTICE" "$MSG1"
+fi
exit 0
\ No newline at end of file