Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/systemd/systemd.client.class.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2243 by niro, Mon Jan 13 09:27:41 2014 UTC revision 2269 by niro, Tue Jan 14 10:34:57 2014 UTC
# Line 5  require basic-system Line 5  require basic-system
5    
6  set_system_service()  set_system_service()
7  {  {
8   local command="$1"   local command="${CLASS_ARGV[0]}"
9   local service="$2"   local service="${CLASS_ARGV[1]}"
10   local opts="$3"   local opts="${CLASS_ARGV[2]}"
11    
12   [[ -z ${command} ]] && help_system_service && return 1   [[ -z ${command} ]] && help_system_service && return 1
13   [[ -z ${service} ]] && help_system_service && return 1   [[ -z ${service} ]] && help_system_service && return 1
# Line 50  set_system_service() Line 50  set_system_service()
50    
51  get_system_service()  get_system_service()
52  {  {
53   local command="$1"   local command="${CLASS_ARGV[0]}"
54   local service="$2"   local service="${CLASS_ARGV[1]}"
55    
56   [[ -z ${command} ]] && help_system_service && return 1   [[ -z ${command} ]] && help_system_service && return 1
57   [[ -z ${service} ]] && help_system_service && return 1   [[ -z ${service} ]] && help_system_service && return 1

Legend:
Removed from v.2243  
changed lines
  Added in v.2269