On Tuesday 27 of September 2011 16:44:37 [email protected] wrote:
> Author: lslezak
> Date: Tue Sep 27 16:44:36 2011
> New Revision: 66101
> 
> URL: http://svn.opensuse.org/viewcvs/yast?rev=66101&view=rev
> Log:
> - use Service::Start()/Stop() instead of hardcoded scripts (systemd
>   support)
> 
> Modified:
>     trunk/sound/sound/src/Joystick.ycp
> 
> Modified: trunk/sound/sound/src/Joystick.ycp
> URL:
> http://svn.opensuse.org/viewcvs/yast/trunk/sound/sound/src/Joystick.ycp?re
> v=66101&r1=66100&r2=66101&view=diff
> ==========================================================================
> ==== --- trunk/sound/sound/src/Joystick.ycp (original)
> +++ trunk/sound/sound/src/Joystick.ycp Tue Sep 27 16:44:36 2011
> @@ -251,8 +251,7 @@
>       * Stop joystick service
>       */
>      global define boolean Stop() ``{

Would be nice to also remove 'define' and backticks, when you actually touch 
the code.

Stano

> -     return
> -         (SCR::Execute(.target.bash, "/etc/init.d/joystick stop", $[]) == 0);
> +     return Service::Stop("joystick");
>      }
> 
>      /**
> @@ -268,7 +267,8 @@
>      global define boolean StartAndEnable() ``{
> 
>       if (start == "enable")
> -         SCR::Execute(.target.bash, "/etc/init.d/joystick start", $[]);
> +         Service::Start("joystick");
> +
>       Service::Adjust("joystick", start);
>       return true;
>      }
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to