Author: mzugec Date: Wed Jun 4 13:28:58 2008 New Revision: 48064 URL: http://svn.opensuse.org/viewcvs/yast?rev=48064&view=rev Log: initialization sequence sent to usb blocks usb port (bnc#397036) Modified: trunk/printer/VERSION trunk/printer/package/yast2-printer.changes trunk/printer/src/modules/Printerlib.ycp Modified: trunk/printer/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/printer/VERSION?rev=48064&r1=48063&r2=48064&view=diff ============================================================================== --- trunk/printer/VERSION (original) +++ trunk/printer/VERSION Wed Jun 4 13:28:58 2008 @@ -1 +1 @@ -2.16.32 +2.16.33 Modified: trunk/printer/package/yast2-printer.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/printer/package/yast2-printer.changes?rev=48064&r1=48063&r2=48064&view=diff ============================================================================== --- trunk/printer/package/yast2-printer.changes (original) +++ trunk/printer/package/yast2-printer.changes Wed Jun 4 13:28:58 2008 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed Jun 4 13:23:24 CEST 2008 - mzugec@suse.cz + +- initialization sequence sent to usb blocks usb port (bnc#397036) +- 2.16.33 + +------------------------------------------------------------------- Mon Jun 2 11:22:52 CEST 2008 - mzugec@suse.cz - install hplip only in case any "hp:/" configured queue exists Modified: trunk/printer/src/modules/Printerlib.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/printer/src/modules/Printerlib.ycp?rev=48064&r1=48063&r2=48064&view=diff ============================================================================== --- trunk/printer/src/modules/Printerlib.ycp (original) +++ trunk/printer/src/modules/Printerlib.ycp Wed Jun 4 13:28:58 2008 @@ -153,12 +153,11 @@ define void wakeUpEpson (string device) ``{ string sequence = "\"\\000\\000\\000\\033\\001\\100\\105\\112\\114\\040\\061\\062\\070\\064\\056\\064\\012\\100\\105\\112\\114\\040\\040\\040\\040\\040\\012\""; - if (haskey ((map)SCR::Read (.proc.modules), "usblp")) - SCR::Execute (.target.bash, sformat (" -MAIN_PID=$$ -{ /bin/echo -en %1 > %2 ; kill $MAIN_PID; } & -ECHO_PID=$! -{ sleep 2s; kill $ECHO_PID &>/dev/null; } &", sequence, device)); + if (haskey ((map)SCR::Read (.proc.modules), "usblp")){ + integer id = (integer)SCR::Execute(.process.start_shell, sformat ("echo -en %1 > %2 ", sequence, device )); + sleep(2*1000); + if ((boolean)SCR::Read(.process.running, id)) SCR::Execute(.process.kill, id); + } } /** -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org