summaryrefslogtreecommitdiffstats
path: root/docs/README
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-03-26 21:30:07 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-03-26 21:30:07 +0000
commit3600a1fd1e9398fad208e3e94c6def2a8e84314a (patch)
treed2a5701e3436aff6a7c61e29f8254164505f23f4 /docs/README
parentaaab5d0fa8f4a6eef4c1d2ee6af9651f6e576db5 (diff)
downloaddrakx-3600a1fd1e9398fad208e3e94c6def2a8e84314a.tar
drakx-3600a1fd1e9398fad208e3e94c6def2a8e84314a.tar.gz
drakx-3600a1fd1e9398fad208e3e94c6def2a8e84314a.tar.bz2
drakx-3600a1fd1e9398fad208e3e94c6def2a8e84314a.tar.xz
drakx-3600a1fd1e9398fad208e3e94c6def2a8e84314a.zip
no_comment
Diffstat (limited to 'docs/README')
-rw-r--r--docs/README35
1 files changed, 35 insertions, 0 deletions
diff --git a/docs/README b/docs/README
index 4f8cf4d8e..43b80faa5 100644
--- a/docs/README
+++ b/docs/README
@@ -197,3 +197,38 @@ On a test machine, make a network install, switch to console (ctrl-alt-F2), ente
then, on another computer:
% DISPLAY=test_machine:0 xwd -root | convert - screenshot.png
+
+********************************************************************************
+* Adding a new step to DrakX ***************************************************
+********************************************************************************
+Say we want to add a question for setting "alawindows" option.
+We put it pretty early in the install, let's say after "Select Installation
+Class".
+
+1. in install2.pm
+
+add
+
+ selectAlawindows => [ __("A la windows or not"), 0, 1, '' ],
+
+after
+
+ selectInstallClass => [ __("Select installation class"), 1, 1, '' ],
+
+the 0, 1, '' means not "redoable", "skip on error", "don't hide"
+
+2. add your function selectAlawindows in install2.pm
+
+sub selectAlawindows { $o->selectAlawindows }
+
+3. add your function selectAlawindows in install_steps_interactive.pm
+
+sub selectAlawindows {
+ my ($o) = @_;
+ $o->{alawindows} = $o->ask_yesorno('', _("Throw everything away as windobe does?"), 1);
+}
+
+4. add your function selectAlawindows in install_steps.pm (not needed in that
+case, except for auto_install)
+
+sub selectAlawindows {}