Author: lslezak
Date: Mon Dec 15 16:09:06 2008
New Revision: 54141
URL: http://svn.opensuse.org/viewcvs/yast?rev=54141&view=rev
Log:
- reload the driver to activate the changed module options
(bnc#402576)
Modified:
trunk/tv/VERSION
trunk/tv/package/yast2-tv.changes
trunk/tv/src/Tv.ycp
Modified: trunk/tv/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/trunk/tv/VERSION?rev=54141&r1=54140&r2=54141&view=diff
==============================================================================
--- trunk/tv/VERSION (original)
+++ trunk/tv/VERSION Mon Dec 15 16:09:06 2008
@@ -1 +1 @@
-2.17.2
+2.18.0
Modified: trunk/tv/package/yast2-tv.changes
URL: http://svn.opensuse.org/viewcvs/yast/trunk/tv/package/yast2-tv.changes?rev=54141&r1=54140&r2=54141&view=diff
==============================================================================
--- trunk/tv/package/yast2-tv.changes (original)
+++ trunk/tv/package/yast2-tv.changes Mon Dec 15 16:09:06 2008
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Mon Dec 15 15:57:10 CET 2008 - lslezak@suse.cz
+
+- reload the driver to activate the changed module options
+ (bnc#402576)
+
+-------------------------------------------------------------------
Mon Oct 6 13:28:14 CEST 2008 - visnov@suse.cz
- adapt to new Confirm::Detection API (bnc #431276)
Modified: trunk/tv/src/Tv.ycp
URL: http://svn.opensuse.org/viewcvs/yast/trunk/tv/src/Tv.ycp?rev=54141&r1=54140&r2=54141&view=diff
==============================================================================
--- trunk/tv/src/Tv.ycp (original)
+++ trunk/tv/src/Tv.ycp Mon Dec 15 16:09:06 2008
@@ -29,6 +29,7 @@
import "Sound";
import "WizardHW";
import "HWConfig";
+ import "String";
textdomain "tv";
@@ -1926,7 +1927,8 @@
{
// write alias
SCR::Write(add(.modprobe_tv.alias, alias), module_names[0]:"");
- start_commands = add(start_commands, $["model" : card_name, "cmd" : "/sbin/modprobe " + module_names[0]:""] );
+ start_commands = add(start_commands, $["model" : card_name, "cmd"
+ : sformat("/sbin/rmmod '%1' 2> /dev/null; /sbin/modprobe '%1'", String::Quote(module_names[0]:""))]);
}
else if (size(module_names) > 1)
{
@@ -1939,7 +1941,7 @@
install_string = install_string + "; ";
}
- install_string = install_string + "/sbin/modprobe " + m;
+ install_string = install_string + sformat("/sbin/rmmod '%1' 2> /dev/null; /sbin/modprobe '%1'", String::Quote(m));
index = index + 1;
}
@@ -2032,7 +2034,7 @@
// start up the configured devices
foreach(map