Hello community,
here is the log from the commit of package yast2-tune
checked in at Fri Oct 20 14:39:59 CEST 2006.
--------
--- yast2-tune/yast2-tune.changes 2006-07-18 11:11:13.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-tune/yast2-tune.changes 2006-10-20 14:28:45.000000000 +0200
@@ -1,0 +2,8 @@
+Fri Oct 20 12:24:57 CEST 2006 - lslezak@suse.cz
+
+- added SysRq configuration option (feature #110071)
+- added global I/O scheduler option (feature #110070)
+- removed pci_id client (merged into system_settings client)
+- 2.13.8
+
+-------------------------------------------------------------------
Old:
----
yast2-tune-2.13.7.tar.bz2
New:
----
yast2-tune-2.13.8.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-tune.spec ++++++
--- /var/tmp/diff_new_pack.9Ue3zU/_old 2006-10-20 14:32:15.000000000 +0200
+++ /var/tmp/diff_new_pack.9Ue3zU/_new 2006-10-20 14:32:15.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-tune (Version 2.13.7)
+# spec file for package yast2-tune (Version 2.13.8)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,15 +11,15 @@
# norootforbuild
Name: yast2-tune
-Version: 2.13.7
+Version: 2.13.8
Release: 1
-License: GPL
+License: GNU General Public License (GPL) - all versions
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-tune-2.13.7.tar.bz2
+Source0: yast2-tune-2.13.8.tar.bz2
prefix: /usr
-BuildRequires: perl-XML-Writer update-desktop-files yast2 yast2-devtools yast2-testsuite
-Requires: yast2 hdparm
+BuildRequires: perl-XML-Writer update-desktop-files yast2 yast2-bootloader yast2-devtools yast2-testsuite
+Requires: yast2 hdparm yast2-bootloader
Provides: yast2-config-hwinfo yast2-tune-idedma yast2-trans-tune
Obsoletes: yast2-config-hwinfo yast2-tune-idedma yast2-trans-tune
Provides: yast2-trans-hwinfo yast2-trans-idedma y2c_tune y2t_tune yast2-config-tune
@@ -32,7 +32,7 @@
%prep
-%setup -n yast2-tune-2.13.7
+%setup -n yast2-tune-2.13.8
%build
%{prefix}/bin/y2tool y2autoconf
@@ -59,7 +59,6 @@
%defattr(-,root,root)
%ifnarch s390 s390x
%{prefix}/share/applications/YaST2/idedma.desktop
-%{prefix}/share/applications/YaST2/pci_id.desktop
%endif
%dir /usr/share/YaST2/include/hwinfo
%dir /usr/share/YaST2/include/idedma
@@ -67,12 +66,18 @@
/usr/share/YaST2/include/idedma/*
/usr/share/YaST2/clients/*.ycp
%{prefix}/share/applications/YaST2/hwinfo.desktop
+%{prefix}/share/applications/YaST2/system_settings.desktop
/usr/share/YaST2/modules/*.ycp
/usr/share/YaST2/modules/*.ybc
/usr/share/YaST2/scrconf/*.scr
%doc %{prefix}/share/doc/packages/yast2-tune
%changelog -n yast2-tune
+* Fri Oct 20 2006 - lslezak@suse.cz
+- added SysRq configuration option (feature #110071)
+- added global I/O scheduler option (feature #110070)
+- removed pci_id client (merged into system_settings client)
+- 2.13.8
* Tue Jul 18 2006 - lslezak@suse.cz
- hwinfo - translate some generic device names (#179880)
- 2.13.7
++++++ yast2-tune-2.13.7.tar.bz2 -> yast2-tune-2.13.8.tar.bz2 ++++++
++++ 6332 lines of diff (skipped)
++++ retrying with extended exclude list
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-tune-2.13.7/Makefile.am new/yast2-tune-2.13.8/Makefile.am
--- old/yast2-tune-2.13.7/Makefile.am 2006-07-18 10:53:18.000000000 +0200
+++ new/yast2-tune-2.13.8/Makefile.am 2006-10-20 12:37:12.000000000 +0200
@@ -67,7 +67,7 @@
# because the prerequisite is made here (not anymore!)
# and we don't want any paths in y2autoconf
# info '(autoconf)config.status Invocation'
-$(RPMNAME).pc: $(RPMNAME).pc.in
+$(RPMNAME).pc: $(RPMNAME).pc.in config.status
./config.status --file=$@:$<
if CREATE_PKGCONFIG_NOARCH
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-tune-2.13.7/Makefile.am.common new/yast2-tune-2.13.8/Makefile.am.common
--- old/yast2-tune-2.13.7/Makefile.am.common 2006-07-18 10:53:18.000000000 +0200
+++ new/yast2-tune-2.13.8/Makefile.am.common 2006-10-20 12:37:12.000000000 +0200
@@ -29,7 +29,19 @@
dist-hook: check-syntax
+CHECK_SYNTAX = true
check-syntax: $(client_DATA) $(ycpchook)
- if test "$(client_DATA)"; then $(bindir)/ycpc -qE -M. -I. $(YCPCFLAGS) $(filter %.ycp,$^) || exit 1; fi
+ @if test "$(client_DATA)"; then \
+ if $(CHECK_SYNTAX); then \
+ TO_CHECK="$(filter %.ycp,$^)"; \
+ echo "Checking syntax of $${TO_CHECK}"; \
+ if ! $(YCPC) -qE -M. -I. $(YCPCFLAGS) $${TO_CHECK}; then \
+ echo "Failed. Disable by 'make ... CHECK_SYNTAX=false' at your own risk"; \
+ exit 1; \
+ fi; \
+ else \
+ echo "Syntax check disabled"; \
+ fi; \
+ fi
-include .dep
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-tune-2.13.7/VERSION new/yast2-tune-2.13.8/VERSION
--- old/yast2-tune-2.13.7/VERSION 2006-07-18 10:53:15.000000000 +0200
+++ new/yast2-tune-2.13.8/VERSION 2006-10-20 12:36:59.000000000 +0200
@@ -1 +1 @@
-2.13.7
+2.13.8
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-tune-2.13.7/configure.in new/yast2-tune-2.13.8/configure.in
--- old/yast2-tune-2.13.7/configure.in 2006-07-18 10:53:18.000000000 +0200
+++ new/yast2-tune-2.13.8/configure.in 2006-10-20 12:37:12.000000000 +0200
@@ -1,9 +1,9 @@
dnl configure.in for yast2-tune
dnl
-dnl -- This file is generated by y2autoconf 2.13.19 - DO NOT EDIT! --
+dnl -- This file is generated by y2autoconf 2.13.16 - DO NOT EDIT! --
dnl (edit configure.in.in instead)
-AC_INIT(yast2-tune, 2.13.7, http://bugs.opensuse.org/, yast2-tune)
+AC_INIT(yast2-tune, 2.13.8, http://bugs.opensuse.org/, yast2-tune)
dnl Check for presence of file 'RPMNAME'
AC_CONFIG_SRCDIR([RPMNAME])
@@ -17,7 +17,7 @@
AM_INIT_AUTOMAKE(tar-ustar) dnl searches for some needed programs
dnl Important YaST2 variables
-VERSION="2.13.7"
+VERSION="2.13.8"
RPMNAME="yast2-tune"
MAINTAINER="Ladislav Slezak "
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-tune-2.13.7/hwinfo/src/InitHWinfo.ycp new/yast2-tune-2.13.8/hwinfo/src/InitHWinfo.ycp
--- old/yast2-tune-2.13.7/hwinfo/src/InitHWinfo.ycp 2006-06-29 08:50:27.000000000 +0200
+++ new/yast2-tune-2.13.8/hwinfo/src/InitHWinfo.ycp 2006-10-20 13:08:29.000000000 +0200
@@ -4,7 +4,7 @@
*
* Author: Ladislav Slezak
*
- * $Id: InitHWinfo.ycp 23468 2005-05-18 15:14:37Z lslezak $
+ * $Id: InitHWinfo.ycp 33530 2006-10-20 11:08:26Z lslezak $
*
* Collect and store hardware information.
*/
@@ -17,6 +17,7 @@
import "Confirm";
import "Progress";
import "Arch";
+import "SystemSettings";
include "hwinfo/routines.ycp";
@@ -208,6 +209,13 @@
ret = prepend(ret, sformat(_("System: %1"), system_string));
}
+ // add SysRq status line
+ if (SystemSettings::GetSysRqKeysEnabled())
+ {
+ // item in the installation proposal (displayed only when SysRq key is enabled
+ ret = add(ret, _("SysRq Key: Enabled"));
+ }
+
y2milestone("proposal: %1", ret);
return ret;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-tune-2.13.7/hwinfo/src/Makefile.am new/yast2-tune-2.13.8/hwinfo/src/Makefile.am
--- old/yast2-tune-2.13.7/hwinfo/src/Makefile.am 2006-06-29 08:50:27.000000000 +0200
+++ new/yast2-tune-2.13.8/hwinfo/src/Makefile.am 2006-10-20 10:28:46.000000000 +0200
@@ -2,22 +2,14 @@
# Makefile.am for tune/hwinfo/src
#
-client_DATA = hwinfo.ycp hwinfo_proposal.ycp inst_hwinfo.ycp pci_id.ycp
+client_DATA = hwinfo.ycp hwinfo_proposal.ycp inst_hwinfo.ycp system_settings.ycp
-if ARCH_S390
-
-desktop_DATA = hwinfo.desktop
-
-else
-
-desktop_DATA = hwinfo.desktop pci_id.desktop
-
-endif
+desktop_DATA = hwinfo.desktop system_settings.desktop
yncludedir = @yncludedir@/hwinfo
-ynclude_DATA = classnames.ycp routines.ycp newid.ycp
+ynclude_DATA = classnames.ycp routines.ycp newid.ycp system_settings_dialogs.ycp system_settings_ui.ycp
-module_DATA = InitHWinfo.ycp NewID.ycp
+module_DATA = InitHWinfo.ycp NewID.ycp SystemSettings.ycp
hwinfo:
ln -sf . hwinfo
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-tune-2.13.7/hwinfo/src/NewID.ycp new/yast2-tune-2.13.8/hwinfo/src/NewID.ycp
--- old/yast2-tune-2.13.7/hwinfo/src/NewID.ycp 2006-06-29 08:50:27.000000000 +0200
+++ new/yast2-tune-2.13.8/hwinfo/src/NewID.ycp 2006-10-20 13:08:29.000000000 +0200
@@ -4,7 +4,7 @@
*
* Author: Ladislav Slezak
*
- * $Id: NewID.ycp 26361 2005-12-01 09:02:31Z locilka $
+ * $Id: NewID.ycp 33530 2006-10-20 11:08:26Z lslezak $
*
* Manage new PCI IDs for kernel drivers
*/
@@ -486,6 +486,8 @@
}
global define boolean Write() {
+ y2milestone("Writing PCI ID cofiguration...");
+
boolean ret = true;
// content of /etc/sysconfig/hardware/newids
@@ -495,15 +497,18 @@
map settings = $[];
// handle removed configurations - remove all modprobe entries
- list<string> drvs = SCR::Dir(.modprobe_newid.install);
+ if (size(removed_ids) > 0)
+ {
+ list<string> drvs = SCR::Dir(.modprobe_newid.install);
- if (drvs != nil && size(drvs) > 0)
- {
- foreach(string d, drvs, {
- SCR::Write(add(.modprobe_newid.install, d), nil);
- }
- );
- }
+ if (drvs != nil && size(drvs) > 0)
+ {
+ foreach(string d, drvs, {
+ SCR::Write(add(.modprobe_newid.install, d), nil);
+ }
+ );
+ }
+ }
if (new_ids != nil)
{
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-tune-2.13.7/hwinfo/src/SystemSettings.ycp new/yast2-tune-2.13.8/hwinfo/src/SystemSettings.ycp
--- old/yast2-tune-2.13.7/hwinfo/src/SystemSettings.ycp 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-tune-2.13.8/hwinfo/src/SystemSettings.ycp 2006-10-20 13:08:29.000000000 +0200
@@ -0,0 +1,182 @@
+/**
+ *
+ * Module: Set Kernel and System Settings
+ *
+ * Author: Lukas Ocilka
+ *
+ * $Id: SystemSettings.ycp 33530 2006-10-20 11:08:26Z lslezak $
+ *
+ * This module manages the System and Kernel settings such as I/O Scheduler type,
+ * Serial Console, SysRq Keys...
+ */
+
+{
+ module "SystemSettings";
+ textdomain "tune";
+
+ import "Service";
+ import "Mode";
+
+ /* Internal Data */
+ boolean ENABLE_SYSRQ = nil;
+
+ string elevator = nil;
+ /* Internal Data */
+
+ global list<string> GetPossibleElevatorValues () {
+ // here are listed all known values of the 'elevator' variable
+ return ["cfq","as","noop","deadline"];
+ }
+
+ global define boolean Read () {
+ ENABLE_SYSRQ = ((string) SCR::Read(.sysconfig.sysctl.ENABLE_SYSRQ) == "yes");
+ y2milestone("SysRq enabled: %1", ENABLE_SYSRQ);
+
+ boolean current_sysrq = (string)SCR::Read(.target.string, "/proc/sys/kernel/sysrq") == "1\n";
+
+ if (current_sysrq != ENABLE_SYSRQ)
+ {
+ y2warning("SysRq mismatch: sysconfig value: %1, current: %2", ENABLE_SYSRQ, current_sysrq);
+ }
+
+ /*
+ * I have to admit that this is very ugly but it is here
+ * to avoid of the very long starting time of the yast module
+ * because the Storage module (which is imported by the Bootloader (imported by the SystemSettings module))
+ * has a Read() function call in its constructor.
+ */
+ import "Bootloader";
+
+ if (Mode::normal())
+ {
+ // runtime - read the settings
+ Bootloader::Read();
+ }
+
+ // get 'elevator' option from the default section
+ any elevator_parameter = Bootloader::getKernelParam(Bootloader::getDefaultSection(), "elevator");
+
+ y2milestone("elevator_parameter: %1", elevator_parameter);
+
+ // Variable is not set
+ if (elevator_parameter == false || elevator_parameter == "false") {
+ elevator = "";
+ // Variable is set but has not parameter
+ } else if (elevator_parameter == true || elevator_parameter == "true") {
+ y2warning("'elevator' variable has to have some value");
+ elevator = "";
+ // Variable is set but hasn't any known value
+ } else if (!contains(GetPossibleElevatorValues(), (string) elevator_parameter)) {
+ y2warning("'elevator' variable has to have a value from %1 instead of being set to %2", GetPossibleElevatorValues(), elevator_parameter);
+ elevator = "";
+ // Variable is OK
+ } else {
+ elevator = (string) elevator_parameter;
+ }
+
+ y2milestone("Global IO scheduler: %1", elevator);
+
+ // FIXME: probe available serial line devices
+
+ return true;
+ }
+
+ global boolean Activate()
+ {
+ // activate the SysRq setting
+ string proc_value = (ENABLE_SYSRQ) ? "1" : "0";
+ y2milestone("Activating SysRq config: %1", proc_value);
+
+ SCR::Execute(.target.bash, sformat("echo '%1' > /proc/sys/kernel/sysrq", proc_value));
+
+ if (elevator != nil)
+ {
+ import "Bootloader";
+// FIXME: setting nil value doesn't remove the option
+// string new_elevator = (elevator == "") ? nil : elevator;
+
+ y2internal("Activating scheduler: %1", /*FIXME: new_*/elevator);
+ // set the scheduler
+ Bootloader::setKernelParam(Bootloader::getDefaultSection(), "elevator", /*FIXME: new_*/elevator);
+
+ // TODO FIXME: set the scheduler for all disk devices,
+ // reboot is required to activate the new scheduler now
+ }
+
+ return true;
+ }
+
+
+ global define boolean Write () {
+ // writing SysRq settings
+ y2milestone("ENABLE_SYSRQ: %1", ENABLE_SYSRQ);
+ SCR::Write(.sysconfig.sysctl.ENABLE_SYSRQ, (ENABLE_SYSRQ ? "yes":"no"));
+ SCR::Write(.sysconfig.sysctl, nil);
+
+ // enable boot.proc service which sets the value after boot
+ Service::Enable("boot.proc");
+
+ // the bootloader configuration is written at the end of the first stage
+ if (Mode::normal())
+ {
+ // write the elevator setting
+ import "Bootloader";
+ Bootloader::Write();
+ }
+
+ // FIXME: write serial console...
+ return true;
+ }
+
+ // Kernel param 'elevator'
+ global define string GetIOScheduler () {
+ return elevator;
+ }
+
+ global define void SetIOScheduler (string io_scheduler) {
+ // empty string = use the default scheduler
+ if (contains(GetPossibleElevatorValues(), io_scheduler) || io_scheduler == "")
+ {
+ elevator = io_scheduler;
+ }
+ else
+ {
+ y2error("unknown IO scheduler '%1', use: %2", io_scheduler, GetPossibleElevatorValues());
+ }
+ }
+
+ global define boolean GetSysRqKeysEnabled () {
+ if (ENABLE_SYSRQ == true || ENABLE_SYSRQ == false)
+ return ENABLE_SYSRQ;
+ else
+ return false;
+ }
+
+ global define void SetSysRqKeysEnabled (boolean enable_sysrq) {
+ if (enable_sysrq != true && enable_sysrq != false)
+ y2warning("enable_sysrq should be 'true' or 'false'");
+ ENABLE_SYSRQ = enable_sysrq;
+ y2milestone("SysRq was set to %1", ENABLE_SYSRQ);
+ }
+
+ /**
+ * Default settings for serial console
+ */
+ map default_sc_settings = $[
+ "enabled" : false,
+ "baud_rate" : 9600,
+ "serial_device" : "/dev/ttyS0",
+ ];
+
+ global define map GetSerialConsoleSettings () {
+ return $[
+ "enabled" : true,
+ "baud_rate" : 9600,
+ "serial_device" : "/dev/ttyS0",
+ ];
+ }
+
+ global define void SetSerialDeviceConsoleSettings (map settings) {
+ return nil;
+ }
+}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-tune-2.13.7/hwinfo/src/inst_hwinfo.ycp new/yast2-tune-2.13.8/hwinfo/src/inst_hwinfo.ycp
--- old/yast2-tune-2.13.7/hwinfo/src/inst_hwinfo.ycp 2006-06-29 08:50:27.000000000 +0200
+++ new/yast2-tune-2.13.8/hwinfo/src/inst_hwinfo.ycp 2006-10-20 13:08:29.000000000 +0200
@@ -4,7 +4,7 @@
*
* Author: Ladislav Slezak
*
- * $Id: inst_hwinfo.ycp 23468 2005-05-18 15:14:37Z lslezak $
+ * $Id: inst_hwinfo.ycp 33530 2006-10-20 11:08:26Z lslezak $
*
* Initial hwinfo module - configuration workflow
*/
@@ -24,7 +24,8 @@
include "hwinfo/routines.ycp";
include "hwinfo/classnames.ycp";
-include "hwinfo/newid.ycp";
+include "hwinfo/system_settings_ui.ycp";
+include "hwinfo/system_settings_dialogs.ycp";
string selected_model = "";
map selected_info = $[];
@@ -213,9 +214,12 @@
`VSpacing(0.4),
`HBox(
// push button label
- `PushButton(`id(`newid), _("&Set PCI ID...")),
+ `PushButton(`id(`newid), _("&System Settings...")),
+ `HSpacing(4),
// push button label
`PushButton(`id(`details), _("&Details...")),
+
+ // FIXME: there should be only "Save to file" in Xen and UML system
(!Arch::is_uml()) ?
// menu button label
`MenuButton(`id(`savemenu), _("&Save to File"),
@@ -329,6 +333,15 @@
return ret;
}
+// only activate the settings,
+// the configuration is written in system_settings_finish.ycp
+symbol ActivateSystemSetting()
+{
+ SystemSettings::Activate();
+
+ return `next;
+}
+
/**************************************
*
* Main part
@@ -340,7 +353,8 @@
$[
"detected" : ``(detected_dialog()),
"details" : [``(details_dialog(selected_model, selected_info)), true],
- "newid" : [``(NewIDConfigDialog()), true]
+ "newid" : [``(SystemSettingsDialog()), true],
+ "activate" : ``(ActivateSystemSetting())
];
// workflow sequence
@@ -349,10 +363,7 @@
"detected" :
$[
`abort : `abort,
- // return `abort even when module was correctly finished
- // (avoids restarting installation proposal of all other modules
- // which doesn't make sense - InitHWinfo is read only module)
- `ok : `abort,
+ `ok : "activate",
`details : "details",
`newid : "newid"
],
@@ -365,6 +376,10 @@
$[
`abort : `abort,
`next : "detected"
+ ],
+ "activate" :
+ $[
+ `next : `next
]
];
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-tune-2.13.7/hwinfo/src/newid.ycp new/yast2-tune-2.13.8/hwinfo/src/newid.ycp
--- old/yast2-tune-2.13.7/hwinfo/src/newid.ycp 2006-06-29 08:50:27.000000000 +0200
+++ new/yast2-tune-2.13.8/hwinfo/src/newid.ycp 2006-10-20 13:08:29.000000000 +0200
@@ -8,7 +8,7 @@
* Authors:
* Ladislav Slezak
*
- * $Id: newid.ycp 26361 2005-12-01 09:02:31Z locilka $
+ * $Id: newid.ycp 33530 2006-10-20 11:08:26Z lslezak $
*
*/
@@ -384,7 +384,7 @@
y2milestone("Key: %1, Event: %2", key, event);
- symbol handle_function_returns = (symbol) event["ID"]:nil;
+ any handle_function_returns = event["ID"]:nil;
if (handle_function_returns== nil) {
y2warning("Unknown event");
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-tune-2.13.7/hwinfo/src/pci_id.desktop new/yast2-tune-2.13.8/hwinfo/src/pci_id.desktop
--- old/yast2-tune-2.13.7/hwinfo/src/pci_id.desktop 2006-06-29 08:50:27.000000000 +0200
+++ new/yast2-tune-2.13.8/hwinfo/src/pci_id.desktop 1970-01-01 01:00:00.000000000 +0100
@@ -1,39 +0,0 @@
-[Desktop Entry]
-Type=Application
-Categories=Qt;X-SuSE-YaST;X-SuSE-YaST-System;
-
-X-KDE-ModuleType=Library
-X-KDE-RootOnly=true
-X-KDE-HasReadOnlyMode=true
-X-KDE-Library=yast2
-X-SuSE-YaST-Call=pci_id
-
-X-SuSE-YaST-Group=System
-X-SuSE-YaST-Argument=
-X-SuSE-YaST-RootOnly=true
-X-SuSE-YaST-AutoInst=
-X-SuSE-YaST-Geometry=
-X-SuSE-YaST-SortKey=
-X-SuSE-YaST-AutoInstResource=
-
-Icon=yast-pci_id
-Exec=/sbin/yast2 pci_id
-
-Name=PCI Device Drivers
-GenericName=Set PCI device IDs used by kernel drivers
-Name[de]=PCI-Gerätetreiber
-GenericName[de]=Von den Kernel-Treibern verwendete PCI-Geräte-IDs festlegen
-Name[fr]=Pilotes de périphériques PCI
-GenericName[fr]=Définir les ID de périphériques PCI utilisés par les pilotes du kernel
-Name[it]=Driver periferiche PCI
-GenericName[it]=Imposta gli ID delle periferiche PCI utilizzati dai driver del kernel
-Name[es]=Controladores de dispositivos PCI
-GenericName[es]=Definir los ID de dispositivo PCI empleados por los controladores del núcleo
-Name[pt_BR]=Drivers de Dispositivo PCI
-GenericName[pt_BR]=Definir IDs de dispositivo PCI usados por drivers de kernel
-Name[ja]=PCIデバイスドライバ
-GenericName[ja]=カーネルドライバで使用されるPCIデバイスIDを設定する
-Name[zh_CN]=PCI 设备驱动程序
-GenericName[zh_CN]=设置内核驱动程序使用的 PCI 设备 ID
-Name[zh_TW]=PCI 設備驅動程式
-GenericName[zh_TW]=設定核心驅動程式使用的 PCI 設備 ID
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-tune-2.13.7/hwinfo/src/pci_id.ycp new/yast2-tune-2.13.8/hwinfo/src/pci_id.ycp
--- old/yast2-tune-2.13.7/hwinfo/src/pci_id.ycp 2006-06-29 08:50:27.000000000 +0200
+++ new/yast2-tune-2.13.8/hwinfo/src/pci_id.ycp 1970-01-01 01:00:00.000000000 +0100
@@ -1,80 +0,0 @@
-/**
- *
- * Module: PCI ID client
- *
- * Author: Ladislav Slezak
- *
- * $Id: pci_id.ycp 27936 2006-02-13 20:01:14Z olh $
- *
- * PCI ID - runtime configuration client
- */
-
-{
-
-textdomain "tune";
-
-import "Wizard";
-import "Sequencer";
-import "NewID";
-import "CommandLine";
-
-include "hwinfo/newid.ycp";
-
-/**************************************
- *
- * Main part
- *
- **************************************/
-
-// aliases for wizard sequencer
-map aliases =
- $[
- "read" : [``(ReadSettings()), true],
- "main" : ``(NewIDConfigDialog()),
- "write" : ``(WriteSettings())
- ];
-
-// workflow sequence
-map sequence = $[
- "ws_start" : "read",
- "read" :
- $[
- `abort : `abort,
- `next : "main"
- ],
- "main" :
- $[
- `abort : `abort,
- `next : "write"
- ],
- "write" :
- $[
- `abort : `abort,
- `next : `next
- ]
-];
-
-define any GUIhandler()
-{
- Wizard::CreateDialog();
- Wizard::SetDesktopIcon("powertweak");
-
- // start workflow
- any ret = Sequencer::Run(aliases, sequence);
-
- Wizard::CloseDialog();
-
- return ret;
-}
-
-
-map cmdline_description = $[
- "guihandler" : GUIhandler
-];
-
-any ret = CommandLine::Run(cmdline_description);
-
-return ret;
-
-}
-
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-tune-2.13.7/hwinfo/src/routines.ycp new/yast2-tune-2.13.8/hwinfo/src/routines.ycp
--- old/yast2-tune-2.13.7/hwinfo/src/routines.ycp 2006-07-18 11:08:58.000000000 +0200
+++ new/yast2-tune-2.13.8/hwinfo/src/routines.ycp 2006-10-12 10:32:54.000000000 +0200
@@ -2,7 +2,7 @@
* File: routines.ycp
*
* Author: Ladislav Slezak
- * $Id: routines.ycp 31919 2006-07-18 09:10:31Z lslezak $
+ * $Id: routines.ycp 33338 2006-10-12 08:32:52Z lslezak $
*
* Functions used in hwinfo and in init_hwinfo modules.
*/
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-tune-2.13.7/hwinfo/src/system_settings.desktop new/yast2-tune-2.13.8/hwinfo/src/system_settings.desktop
--- old/yast2-tune-2.13.7/hwinfo/src/system_settings.desktop 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-tune-2.13.8/hwinfo/src/system_settings.desktop 2006-10-20 10:27:30.000000000 +0200
@@ -0,0 +1,23 @@
+[Desktop Entry]
+Type=Application
+Categories=Qt;X-SuSE-YaST;X-SuSE-YaST-System;
+
+X-KDE-ModuleType=Library
+X-KDE-RootOnly=true
+X-KDE-HasReadOnlyMode=true
+X-KDE-Library=yast2
+X-SuSE-YaST-Call=system_settings
+
+X-SuSE-YaST-Group=System
+X-SuSE-YaST-Argument=
+X-SuSE-YaST-RootOnly=true
+X-SuSE-YaST-AutoInst=
+X-SuSE-YaST-Geometry=
+X-SuSE-YaST-SortKey=
+X-SuSE-YaST-AutoInstResource=
+
+Icon=yast-powertweak
+Exec=/sbin/yast2 system_settings
+
+Name=System Settings
+GenericName=Configure Low-Level System Options
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-tune-2.13.7/hwinfo/src/system_settings.ycp new/yast2-tune-2.13.8/hwinfo/src/system_settings.ycp
--- old/yast2-tune-2.13.7/hwinfo/src/system_settings.ycp 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-tune-2.13.8/hwinfo/src/system_settings.ycp 2006-09-21 15:48:33.000000000 +0200
@@ -0,0 +1,86 @@
+/**
+ *
+ * Module: System Settings Client
+ *
+ * Author: Lukas Ocilka
+ * Ladislav Slezak
+ *
+ * $Id: system_settings.ycp 27936 2006-02-13 20:01:14Z olh $
+ *
+ * System Settings for PCI ID, I/O Scheduler, Serial Console, etc.
+ */
+
+{
+
+textdomain "tune";
+
+import "Wizard";
+import "Sequencer";
+import "CommandLine";
+
+// PCI ID (backward compatibility)
+include "hwinfo/newid.ycp";
+// UI handling functions
+include "hwinfo/system_settings_ui.ycp";
+// UI definition functions
+include "hwinfo/system_settings_dialogs.ycp";
+
+/**************************************
+ *
+ * Main part
+ *
+ **************************************/
+
+// aliases for wizard sequencer
+map aliases =
+ $[
+ "read" : [``(ReadSystemSettingsDialog()), true],
+ "main" : ``(SystemSettingsDialog()),
+ "write" : ``(WriteSystemSettingsDialog())
+ ];
+
+// workflow sequence
+map sequence = $[
+ "ws_start" : "read",
+ "read" :
+ $[
+ `abort : `abort,
+ `next : "main"
+ ],
+ "main" :
+ $[
+ `abort : `abort,
+ `next : "write"
+ ],
+ "write" :
+ $[
+ `abort : `abort,
+ `next : `next
+ ]
+];
+
+define any GUIhandler()
+{
+ Wizard::CreateDialog();
+ Wizard::SetDesktopIcon("powertweak");
+
+ // start workflow
+ any ret = Sequencer::Run(aliases, sequence);
+ y2milestone("Finishing with %1", ret);
+
+ UI::CloseDialog();
+
+ return ret;
+}
+
+
+map cmdline_description = $[
+ "guihandler" : GUIhandler
+];
+
+any ret = CommandLine::Run(cmdline_description);
+
+return ret;
+
+}
+
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-tune-2.13.7/hwinfo/src/system_settings_dialogs.ycp new/yast2-tune-2.13.8/hwinfo/src/system_settings_dialogs.ycp
--- old/yast2-tune-2.13.7/hwinfo/src/system_settings_dialogs.ycp 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-tune-2.13.8/hwinfo/src/system_settings_dialogs.ycp 2006-10-20 13:08:29.000000000 +0200
@@ -0,0 +1,218 @@
+/**
+ * File:
+ * system_settings.ycp
+ *
+ * Summary:
+ * Configuration of System Settings. PCI ID, Kernel parameters,
+ * Bootloader parameters etc.
+ *
+ * Authors:
+ * Lukas Ocilka
+ *
+ * $Id: system_settings_dialogs.ycp 33530 2006-10-20 11:08:26Z lslezak $
+ *
+ */
+
+{
+
+ import "CWM";
+ import "CWMTab";
+ import "Label";
+ import "Arch";
+
+ textdomain "tune";
+
+ term contents = `VBox ( "tab" );
+
+ map tabs_descr = $[
+ "pci_id" : $[
+ "header" : NewPCIIDDialogCaption(),
+ "contents" : `HBox (
+ `HSpacing(1),
+ `VBox (
+ `VSpacing(0.3),
+ "pci_id_table_and_buttons",
+ `VSpacing(0.3)
+ ),
+ `HSpacing(1)
+ ),
+ "widget_names" : ["pci_id_table_and_buttons"],
+ ],
+ "kernel_settings" : $[
+ "header" : _("Kernel Settings"),
+ "contents" : `HBox (
+ `HSpacing(1),
+ `VBox (
+ `VSpacing(0.3),
+ `Left( "elevator" ),
+ `VSpacing(1),
+ `Left( "sysrq" ),
+// FIXME: temporary hack - disable serial console config
+// `VSpacing(1),
+// `Left ( "serial_console" ),
+ `VStretch()
+ ),
+ `HSpacing (1)
+ ),
+ "widget_names" : ["elevator", "sysrq", "serial_console"],
+ ],
+ ];
+
+ string initial_tab = "pci_id";
+
+ list <string> widget_names = ["tab"];
+ map > widget_descr = $[
+ "pci_id_table_and_buttons" : $[
+ "widget" : `custom,
+ "custom_widget" : NewPCIIDDialogContent(),
+ "help" : NewPCIIDDialogHelp(),
+ "init" : InitNewPCIIDDialog,
+ "handle" : HandleNewPCIIDDialog,
+ ],
+
+ /* /usr/src/linux/Documentation/kernel-parameters.txt
+ * http://www.redhat.com/magazine/008jun05/features/schedulers/
+ *
+ * elevator= [IOSCHED]
+ * Format: {"as"|"cfq"|"deadline"|"noop"}
+ * See Documentation/block/as-iosched.txt
+ * and Documentation/block/deadline-iosched.txt for details.
+ *
+ * *'deadline' => Deadline. Database servers, especially those using "TCQ" disks should
+ * investigate performance with the 'deadline' IO scheduler. Any system with high
+ * disk performance requirements should do so, in fact.
+ * *'as' => Anticipatory (the default one)
+ * *'noop' => NOOP
+ * 'cfq' => Completely Fair Queuing
+ */
+ "elevator" : $[
+ "widget" : `custom,
+ // combo box label
+ "custom_widget" : `ComboBox (`id("elevator"), _("Global &I/O Scheduler"), [
+ // combo box item - I/O scheduler
+ `item( `id(""), _("Not Configured")),
+ // combo box item - I/O scheduler, do not translate the abbreviation in brackets
+ `item( `id("as"), _("Anticipatory [as]")),
+ // combo box item - I/O scheduler, do not translate the abbreviation in brackets
+ `item( `id("cfq"), _("Completely Fair Queuing [cfq]")),
+ // combo box item - I/O scheduler, do not translate the abbreviation in brackets
+ `item( `id("noop"), _("NOOP [noop]")),
+ // combo box item - I/O scheduler, do not translate the abbreviation in brackets
+ `item( `id("deadline"), _("Deadline [deadline]"))
+ ]),
+ "handle" : HandleElevatorSettings,
+ "init" : InitElevatorSettings,
+ "store" : StoreElevatorSettings,
+ // help text for the scheduler widget, do not translate 'cfg'
+ "help" : _("<p><b><big>Global I/O Scheduler</big></b><br>
+It's possible to select the algorithm which orders and sends commands to disk
+devices. This is a global option, it will be used for all disk devices in the
+system. If the option is not configured the default (usually 'cfq') scheduler
+will be used. See the documetation in /usr/src/linux/Documentation/block
+directory (package kernel-source) for more information.</p>"),
+ ],
+ // .sysconfig.sysctl
+ "sysrq" : $[
+ "widget" : `checkbox,
+ "label" : _("Enable &SysRq Keys"),
+ "store" : StoreSysRqSettings,
+ "init" : InitSysRqSettings,
+ // TRANSLATORS: Help text - over taken from /etc/sysconfig/sysctl file
+ "help" : _("<p><b><big>Enable SysRq Keys</big></b><br>
+If you enable SysRq keys, you will have some control over the system even if it
+crashes (such as during kernel debugging). If it's enabled the key combination
+Alt-SysRq- will start the respective command (e.g. reboot the
+computer, dump kernel information). For further information, see
+<tt>/usr/src/linux/Documentation/sysrq.txt</tt> (package kernel-source).</p>")
+ ],
+ // http://www.vanemery.com/Linux/Serial/serial-console.html
+ // http://www.mikrotik.com/Documentation/manual_2.7/System/Serial.html
+ // http://www.camiresearch.com/Data_Com_Basics/RS232_standard.html
+
+ // http://www.tldp.org/HOWTO/Remote-Serial-Console-HOWTO/configure-boot-loader-...
+ // http://www.tldp.org/HOWTO/Remote-Serial-Console-HOWTO/configure-boot-loader-...
+
+ /*
+ * LILO:
+ * serial=[,<speed>[[<data>]]]
+ * syntax ::= 0 | 1| ... | 3 (/dev/tty0 -> 0)
+ * console=,<speed>
+ *
+ * GRUB
+ * serial --unit=0 --speed=<speed> --word=8 --parity=[no|even|odd] --stop=1
+ * terminal --timeout=0 [--dumb] serial console / terminal serial
+ */
+ "serial_console" : $[
+ // FIXME: serial line has to have funkcionality defined more precisely
+ "widget" : `custom,
+ "custom_widget" : `Frame( _("Serial Console"),
+ `VBox (
+ `Left( `CheckBox (_("&Enable the Serial Console"))),
+ `Left( `ComboBox (`opt(`editable), _("Serial Line &Baud Rate"), [
+ "110", "300", "1200", "2400", "4800", "9600", "19200", "38400", "57600", "115200"
+ ])),
+ `Left( `ComboBox (`opt(`editable), _("Serial &Device"), [
+ "/dev/ttyS0", "/dev/ttyS1"
+ ]))
+ )
+ ),
+ "handle" : HandleSerialConsoleSettings,
+ "help" : _("<p><b><big>Serial Console</big></b><br>
+help for the Serial console settings</p>"),
+ ],
+ ];
+
+// FIXME: temporary hack - disable serial line configuration
+ widget_descr = remove(widget_descr, "serial_console");
+
+ define symbol SystemSettingsDialog () {
+ list<string> tab_order = ["kernel_settings"];
+
+ // do not show PCI ID tab on s390
+ if (!Arch::s390())
+ {
+ tab_order = prepend(tab_order, "pci_id");
+ }
+ else
+ {
+ // remove the PCI ID tab definition
+ tabs_descr = remove(tabs_descr, "pci_id");
+
+ // set focus to kernel_settings tab
+ initial_tab = "kernel_settings";
+ }
+
+ widget_descr["tab"] = CWMTab::CreateWidget($[
+ "tab_order": tab_order,
+ "tabs": tabs_descr,
+ "widget_descr": widget_descr,
+ "initial_tab" : initial_tab,
+ ]);
+
+ // explicitly set no help (otherwise CWM logs an error)
+ widget_descr["tab","help"] = "";
+
+ string caption = _("System Settings");
+
+ Wizard::SetContentsButtons("", `VBox (), "",
+ Label::BackButton(), Label::NextButton());
+ Wizard::SetDesktopIcon("powertweak");
+
+ symbol ret = CWM::ShowAndRun ($[
+ "widget_descr" : widget_descr,
+ "widget_names" : widget_names,
+ "contents" : contents,
+ "caption" : caption,
+ "back_button" : "",
+ "abort_button" : Label::AbortButton (),
+ "next_button" : Label::FinishButton (),
+ ]);
+
+ if (ret != `back && ret != `abort && ret != `cancel) {
+ initial_tab = CWMTab::CurrentTab ();
+ }
+ y2milestone("Returning %1", ret);
+
+ return ret;
+ }
+}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/yast2-tune-2.13.7/hwinfo/src/system_settings_ui.ycp new/yast2-tune-2.13.8/hwinfo/src/system_settings_ui.ycp
--- old/yast2-tune-2.13.7/hwinfo/src/system_settings_ui.ycp 1970-01-01 01:00:00.000000000 +0100
+++ new/yast2-tune-2.13.8/hwinfo/src/system_settings_ui.ycp 2006-10-20 13:08:29.000000000 +0200
@@ -0,0 +1,146 @@
+/**
+ *
+ * Module: System Settings UI Handling
+ *
+ * Author: Lukas Ocilka
+ *
+ * $Id: system_settings_ui.ycp 33530 2006-10-20 11:08:26Z lslezak $
+ *
+ * System Settings for PCI ID, I/O Scheduler, Serial Console, etc.
+ */
+
+{
+ import "Progress";
+ import "SystemSettings";
+
+ // ReadSettings()
+ include "hwinfo/newid.ycp";
+
+ textdomain "tune";
+
+ /* Short sleep between reads or writes */
+ integer sl = 500;
+
+ define symbol ReadSystemSettingsDialog () {
+ string caption = _("Reading the Configuration");
+
+ // FIXME: s390: disable reading PCI IDs
+ Progress::New ( caption, " ", 2, [
+ _("Read the PCI ID settings"),
+ _("Read the system settings"),
+ ],
+ [
+ _("Reading the PCI ID settings..."),
+ _("Reading the system settings..."),
+ _("Finished"),
+ ],
+ _("<p><b><big>Reading the Configuration</big></b><br>
+Please wait...</p>")
+ );
+
+ boolean progress_orig = nil;
+
+ Progress::NextStage();
+ progress_orig = Progress::set(false);
+ // calling PCI ID Read()
+ ReadSettings();
+ Progress::set(progress_orig);
+
+ Progress::NextStage();
+ progress_orig = Progress::set(false);
+ /*
+ * I have to admit that this is very ugly but it is here
+ * to avoid of the very long starting time of the yast module
+ * because the Storage module (which is imported by the Bootloader (imported by the SystemSettings module))
+ * has a Read() function call in its constructor.
+ */
+ SystemSettings::Read();
+ Progress::set(progress_orig);
+
+ Progress::NextStage();
+ sleep(2 * sl);
+
+ return `next;
+ }
+
+ define symbol WriteSystemSettingsDialog () {
+ string caption = _("Saving the Configuration");
+ Progress::New ( caption, " ", 2, [
+ _("Save the PCI ID settings"),
+ _("Save the system settings"),
+ ],
+ [
+ _("Saving the PCI ID settings..."),
+ _("Saving the system settings..."),
+ _("Finished"),
+ ],
+ _("<p><b><big>Saving the Configuration</big></b><br>
+Please wait...</p>")
+ );
+
+ boolean progress_orig = nil;
+
+ Progress::NextStage();
+ progress_orig = Progress::set(false);
+ // calling PCI ID Write()
+ WriteSettings();
+ Progress::set(progress_orig);
+
+ sleep(sl);
+
+ Progress::NextStage();
+ progress_orig = Progress::set(false);
+
+ // activate the current configuration
+ SystemSettings::Activate();
+
+ // save the configuration
+ SystemSettings::Write();
+
+ Progress::set(progress_orig);
+
+ Progress::NextStage();
+ sleep(2 * sl);
+
+ return `next;
+ }
+
+
+ define symbol HandleElevatorSettings (string key, map event) {
+ y2milestone("Key: %1, Event: %2", key, event);
+ return nil;
+ }
+
+ void InitElevatorSettings(string value)
+ {
+ UI::ChangeWidget(`id("elevator"), `Value, SystemSettings::GetIOScheduler());
+ }
+
+ void StoreElevatorSettings(string key, map event)
+ {
+ y2milestone("Key: %1, Event: %2", key, event);
+ string elevator_new = (string) UI::QueryWidget(`id("elevator"), `Value);
+
+ SystemSettings::SetIOScheduler(elevator_new);
+ }
+
+ define void InitSysRqSettings (string key) {
+ UI::ChangeWidget(`id("sysrq"), `Value, SystemSettings::GetSysRqKeysEnabled());
+ }
+
+ define void StoreSysRqSettings (string key, map event) {
+ y2milestone("Key: %1, Event: %2", key, event);
+
+ boolean sysrq_new = (boolean) UI::QueryWidget(`id("sysrq"), `Value);
+ if (SystemSettings::GetSysRqKeysEnabled() != sysrq_new) {
+ SystemSettings::SetSysRqKeysEnabled(sysrq_new);
+ }
+ }
+
+ define symbol HandleSerialConsoleSettings (string key, map event) {
+ y2milestone("Key: %1, Event: %2", key, event);
+ return nil;
+ }
+
+}
+
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org