summaryrefslogtreecommitdiffstats
path: root/live_update
blob: f17845e2d79d88516de839b91ab2a3112760c6f4 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
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
57 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
package list_modules;

use MDK::Common;

our @ISA = qw(Exporter);
our @EXPORT = qw(load_dependencies dependencies_closure category2modules module2category sub_categories);

# the categories have 2 purposes
# - choosing modules to include on stage1's (cf update_kernel and mdk-stage1/pci-resource/update-pci-ids.pl)
# - performing a load_category or probe_category (modules.pm and many files in perl-install)

our %l = (
  ################################################################################
  network => 
  {
    main => [
      if_(arch() =~ /ppc/, qw(mace bmac gmac airport)),
      if_(arch() =~ /^sparc/, qw(sunbmac sunhme sunqe)),
      if_(arch() !~ /alpha/ && arch() !~ /sparc/,
        qw(3c501 3c503 3c505 3c507 3c509 3c515 3c90x),
	qw(82596 abyss ac3200 acenic aironet4500_card at1700 atp com20020-pci),
        qw(cs89x0 de600 de620),
        qw(defxx orinoco_plx), # most unused
        qw(depca dgrs dmfe e100 e2100 eepro eepro100 eexpress epic100 eth16i),
        qw(ewrk3 hamachi hp hp-plus hp100 ibmtr),
        qw(lance natsemi ne ne2k-pci ni5010 ni52 ni65 nvnet olympic pcnet32 plip rcpci),
        qw(sb1000 sis900 smc-ultra smc9194 starfire tlan tmspci tulip via-rhine),
        qw(wd winbond-840),
	qw(fealnx 3c990 3c990fx bcm4400),
        qw(skfp tc35815 lanstreamer farsync sdladrv orinoco_pci prism2_plx),

	qw(iph5526), #- fibre channel
      ),
      qw(3c59x 8139too 8139cp sundance), #rtl8139
    ],
    gigabit => [
      qw(dl2k myri_sbus yellowfin ns83820 r8169 tg3 e1000 sk98lin),
      qw(bcm5820 bcm5700), #- encrypted
    ],

    raw => [
      qw(ppp_generic ppp_async),
    ],
    pcmcia => [ 
      qw(3c574_cs 3c589_cs airo airo_cs aironet4500_cs axnet_cs fmvj18x_cs),
      qw(ibmtr_cs orinoco_cs netwave_cs nmclan_cs pcnet_cs ray_cs smc91c92_cs wavelan_cs wvlan_cs),
      qw(xirc2ps_cs xircom_cb xircom_tulip_cb),
    ],
    usb => [ 
      qw(catc CDCEther kaweth pegasus rtl8150 usbnet usbvnet_rfmd),
    ],
    isdn => [
      qw(b1pci c4 hisax hisax_fcpcipnp hysdn t1pci tpam),
    ],
  },

  ################################################################################
  disk => 
  {
    scsi => [
      if_(arch() =~ /ppc/, qw(mesh mac53c94)),
      if_(arch() =~ /^sparc/, qw(qlogicpti)),
      if_(arch() !~ /alpha/ && arch() !~ /sparc/,
        qw(3w-xxxx AM53C974 BusLogic NCR53c406a a100u2w advansys aha152x aha1542 aha1740),
        qw(atp870u dc395x_trm dtc g_NCR5380 in2000 initio pas16 pci2220i psi240i fdomain),
        qw(qla1280 qla2x00 qlogicfas qlogicfc),
        qw(seagate wd7000 sim710 sym53c416 t128 tmscsim u14-34f ultrastor),
        qw(eata eata_pio eata_dma mptscsih nsp32),
      ),
      '53c7,8xx',
      qw(aic7xxx aic7xxx_old aic79xx pci2000 qlogicisp sym53c8xx), # ncr53c8xx
    ],
    hardware_raid => [
      if_(arch() =~ /^sparc/, qw(pluto)),
      if_(arch() !~ /alpha/ && arch() !~ /sparc/,
        qw(DAC960 dpt_i2o megaraid aacraid cciss cpqarray gdth i2o_block),
	qw(cpqfc qla2200 qla2300 ataraid hptraid silraid pdcraid),
        qw(ips ppa imm),
      ),
    ],
    pcmcia => [ qw(aha152x_cs fdomain_cs nsp_cs qlogic_cs ide-cs) ], #ide_cs
    raw => [ qw(scsi_mod sd_mod) ],
    usb => [ qw(usb-storage) ],
    firewire => [ qw(sbp2) ],
    cdrom => [ qw(ide-cd cdrom sr_mod) ],
  },

  ################################################################################

  bus => 
  {
    usb => [ qw(usbcore usb-uhci usb-ohci ehci-hcd usbkbd keybdev input) ],
    firewire => [ qw(ohci1394 ieee1394) ],
    pcmcia => [
      if_(arch() !~ /^sparc/, qw(pcmcia_core tcic ds i82365 i82092 yenta_socket)), # cb_enabler
    ],
   #serial_cs
   #ftl_cs 3c575_cb apa1480_cb epic_cb serial_cb tulip_cb iflash2+_mtd iflash2_mtd
   #cb_enabler
  },