summaryrefslogtreecommitdiffstats
path: root/live_update
diff options
context:
space:
mode:
authorMystery Man <unknown@mandriva.org>2000-11-08 00:01:16 +0000
committerMystery Man <unknown@mandriva.org>2000-11-08 00:01:16 +0000
commitd5c526273db473a7d87a26000585900fc10dda7d (patch)
tree0fdaabe7a00921b6cc556601b103d344fc7ac781 /live_update
parent9c164312d4bfff6d93e1c4529de6b992f2bebc44 (diff)
downloaddrakx-backup-do-not-use-d5c526273db473a7d87a26000585900fc10dda7d.tar
drakx-backup-do-not-use-d5c526273db473a7d87a26000585900fc10dda7d.tar.gz
drakx-backup-do-not-use-d5c526273db473a7d87a26000585900fc10dda7d.tar.bz2
drakx-backup-do-not-use-d5c526273db473a7d87a26000585900fc10dda7d.tar.xz
drakx-backup-do-not-use-d5c526273db473a7d87a26000585900fc10dda7d.zip
This commit was manufactured by cvs2svn to create branch
'unlabeled-1.1.1'.
Diffstat (limited to 'live_update')
-rw-r--r--live_update73
1 files changed, 73 insertions, 0 deletions
diff --git a/live_update b/live_update
new file mode 100644
index 000000000..f17845e2d
--- /dev/null
+++ b/live_update
@@ -0,0 +1,73 @@
+#!/bin/sh
+
+message=/usr/X11R6/bin/gmessage
+[ -x $message ] || message=/usr/X11R6/bin/xmessage
+[ -x $message ] || unset message
+
+if [ "$UID" -ne 0 ]; then
+ if [ -x "$message" ]; then
+ case "$LANG" in
+ fr*) buttons="Arrêter:0"
+ msg="Mise à jour en direct de Linux-Mandrake.
+
+Vous devez être l'utilisateur root pour lancer cette application." ;;
+ *) buttons="Abort:0"
+ msg="Linux-Mandrake live upgrade.
+
+You need to be root to start this program." ;;
+ esac
+ $message -buttons "$buttons" -print "$msg"
+ else
+ echo >&2 "You need to be root to start this program."
+ fi
+ exit 3
+fi
+
+if [ ! -x "/mnt/cdrom/Mandrake/mdkinst/usr/bin/perl-install/live_install" ]; then
+ if [ -x "$message" ]; then
+ case "$LANG" in
+ fr*) buttons="Arrêter:0"
+ msg="Mise à jour en direct de Linux-Mandrake.
+
+Impossible de trouver le Cédérom d'installation de Linux-Mandrake dans le premier lecteur." ;;
+ *) buttons="Abort:0"
+ msg="Linux-Mandrake live upgrade.
+
+Unable to find Linux-Mandrake Installation Cd-Rom in the first drive." ;;
+ esac
+ $message -buttons "$buttons" -print "$msg"
+ else
+ echo >&2 "Unable to find Linux-Mandrake Installation Cd-Rom in the first drive."
+ fi
+ exit 2
+fi
+
+if [ -x "$message" ]; then
+ case "$LANG" in
+ fr*) buttons="Mise à jour:0,Annuler:1"
+ msg="Mise à jour en direct de Linux-Mandrake.
+
+Appuyez sur \"Mise à jour\" pour lancer la mise à jour de votre système,
+cela prendra quelques minutes avant que l'écran de DrakX apparaisse.
+
+Appuyez sur \"Annuler\" pour ne pas mettre à jour votre système de cette manière." ;;
+ *) buttons="Upgrade:0,Cancel:1"
+ msg="Linux-Mandrake live upgrade.
+
+Press \"Upgrade\" to start live upgrade on your system, note this will
+take some time to prepare the system before DrakX screen appears.
+
+Press \"Cancel\" to avoid upgrading your system this way." ;;
+ esac
+ default=`echo $buttons | cut -d: -f1`
+ $message -buttons "$buttons" -default "$default" -print "$msg"
+ [ $? -ne 0 ] && exit 1
+else
+ echo >&2 "Press ENTER to start live upgrade on your system, note this will
+take some time to prepare the system before DrakX screen appears.
+
+Press CTRL-C to avoid upgrading your system this way."
+fi
+
+cd /mnt/cdrom/Mandrake/mdkinst/usr/bin/perl-install && exec ./live_install
+exit 2