summaryrefslogtreecommitdiffstats
path: root/make_ks_from_floppy
blob: 0c2c483311753b39436d019949b39d2e5553b097 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

ks="install/ks.cfg"

[ -e $ks ] || { echo "missing file $ks, create one based on $ks.default"; exit 1; }

sudo mount /mnt/floppy
cp -f $ks /mnt/floppy
perl -pi -e 's/prompt 1//; s/\s*kickstart=\S+//g; s/append/append kickstart=auto_inst.cfg.pl/' /mnt/floppy/syslinux.cfg
sudo umount /mnt/floppy
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
package install_steps_newt; # $Id$

use diagnostics;
use strict;
use vars qw(@ISA);

@ISA = qw(install_steps_interactive interactive::newt);

#-######################################################################################
#- misc imports
#-######################################################################################
use install_steps_interactive;
use interactive::newt;
use install_any;
use devices;
use lang;
use common;

sub banner {
    my $banner = translate(N_("Mandrake Linux Installation %s"));
    my $l = first(Newt::GetScreenSize()) - length($banner) - length($_[0]) + 1;
    Newt::DrawRootText(0, 0, sprintf($banner, ' ' x $l . $_[0]));
    Newt::Refresh();
}

sub new {
    my ($type, $o) = @_;

    interactive::newt->new;

    banner('');
#-PO This string must fit in a 80-char wide text screen
    Newt::PushHelpLine(N("  <Tab>/<Alt-Tab> between elements  | <Space> selects | <F12> next screen "));

    (bless {}, ref($type) || $type)->SUPER::new($o);
}

sub enteringStep {
    my ($o, $step) = @_;
    $o->SUPER::enteringStep($step);
    banner(translate($o->{steps}{$step}{text}));
}

sub exitInstall { 
    &install_steps_interactive::exitInstall;
    interactive::newt::end();
}

#-######################################################################################
#- Steps Functions
#-######################################################################################
sub selectLanguage {
    my ($o) = @_;
    $o->SUPER::selectLanguage;
    lang::load_console_font($o->{locale});
}


1;