Mailinglist Archive: yast-commit (883 mails)

< Previous Next >
[yast-commit] r57861 - /trunk/isns/src/isns_finish.ycp
  • From: mzugec@xxxxxxxxxxxxxxxx
  • Date: Fri, 03 Jul 2009 10:00:07 -0000
  • Message-id: <E1MMfYt-0000k9-Fu@xxxxxxxxxxxxxxxx>
Author: mzugec
Date: Fri Jul 3 12:00:07 2009
New Revision: 57861

URL: http://svn.opensuse.org/viewcvs/yast?rev=57861&view=rev
Log:
added isns_finish.ycp

Added:
trunk/isns/src/isns_finish.ycp

Added: trunk/isns/src/isns_finish.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/isns/src/isns_finish.ycp?rev=57861&view=auto
==============================================================================
--- trunk/isns/src/isns_finish.ycp (added)
+++ trunk/isns/src/isns_finish.ycp Fri Jul 3 12:00:07 2009
@@ -0,0 +1,61 @@
+/**
+ * File:
+ * isns_finish.ycp
+ *
+ * Module:
+ * Step of base installation finish
+ *
+ * Authors:
+ * Michal Zugec <mzugec@xxxxxxx>
+ *
+ */
+
+{
+
+textdomain "isns";
+
+import "Directory";
+include "installation/misc.ycp";
+
+any ret = nil;
+string func = "";
+map param = $[];
+
+/* Check arguments */
+if(size(WFM::Args()) > 0 && is(WFM::Args(0), string)) {
+ func = (string)WFM::Args(0);
+ if(size(WFM::Args()) > 1 && is(WFM::Args(1), map))
+ param = (map)WFM::Args(1);
+}
+
+y2milestone ("starting scsi-client_finish");
+y2debug("func=%1", func);
+y2debug("param=%1", param);
+
+if (func == "Info")
+{
+ return (any)$[
+ "steps" : 1,
+ // progress step title
+ "title" : _("Saving iSCSI configuration..."),
+ "when" : [ `installation, `update, `autoinst ],
+ ];
+}
+else if (func == "Write")
+{
+ // write isns database of automatic connected targets
+ WFM::Execute (.local.bash,"test -d /var/lib/isns/ && /bin/cp -a
/var/lib/isns/* " + Installation::destdir + "/var/lib/isns/");
+ WFM::Execute (.local.bash,"test -d /etc/isns/ && /bin/cp -a /etc/isns/* " +
Installation::destdir + "/etc/isns/");
+}
+else
+{
+ y2error ("unknown function: %1", func);
+ ret = nil;
+}
+
+y2debug("ret=%1", ret);
+y2milestone("isns_finish finished");
+return ret;
+
+
+} /* EOF */

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages