summaryrefslogtreecommitdiffstats
path: root/perl-install/install_steps.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r--perl-install/install_steps.pm26
1 files changed, 16 insertions, 10 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm
index 9c5473c49..b9ffd80ee 100644
--- a/perl-install/install_steps.pm
+++ b/perl-install/install_steps.pm
@@ -24,18 +24,14 @@ use network;
use fs;
-my $o;
-
-1;
-
-
#-######################################################################################
-#- misc functions
+#- OO Stuff
#-######################################################################################
sub new($$) {
- my ($type, $o_) = @_;
-
- $o = bless $o_, ref $type || $type;
+ my ($type, $o) = @_;
+
+ bless $o, ref $type || $type;
+ return $o;
}
#-######################################################################################
@@ -84,11 +80,15 @@ sub errorInStep($$) {}
#-######################################################################################
#------------------------------------------------------------------------------
sub selectLanguage {
+ my ($o) = @_;
$o->{keyboard} ||= keyboard::lang2keyboard($o->{lang});
selectKeyboard($o);
}
#------------------------------------------------------------------------------
-sub selectKeyboard { keyboard::setup($o->{keyboard}) }
+sub selectKeyboard {
+ my ($o) = @_;
+ keyboard::setup($o->{keyboard})
+ }
#------------------------------------------------------------------------------
sub selectPath {}
#------------------------------------------------------------------------------
@@ -261,6 +261,7 @@ sub addUser($) {
#------------------------------------------------------------------------------
sub createBootdisk($) {
+ my ($o) = @_;
my $dev = $o->{mkbootdisk} or return;
my @l = detect_devices::floppies();
@@ -288,3 +289,8 @@ sub setupXfree {
#------------------------------------------------------------------------------
sub exitInstall {}
+
+#-######################################################################################
+#- Wonderful perl :(
+#-######################################################################################
+1; #