Magellan Linux

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

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

revision 2269 by niro, Tue Jan 14 10:34:57 2014 UTC revision 2832 by niro, Wed Aug 30 13:54:01 2017 UTC
# Line 174  set_system_autologon() Line 174  set_system_autologon()
174   *) help_system_autologon && return 1 ;;   *) help_system_autologon && return 1 ;;
175   esac   esac
176  }  }
177    
178    help_system_cmdline()
179    {
180     mecho "get system.cmdline [variable]"
181     mecho "  Prints the value or bool of a given cmdline variable"
182    }
183    
184    get_system_cmdline()
185    {
186     local variable="${CLASS_ARGV[0]}"
187     local retval
188     [[ -z ${variable} ]] && help_system_cmdline && return 1
189    
190     retval="$(read_cmdline ${variable})"
191     rvecho "${retval}"
192    }
193    
194    help_system_arch()
195    {
196     mecho "get system.arch"
197     mecho "  Prints the system architecture"
198    }
199    
200    get_system_arch()
201    {
202     local retval
203    
204     retval="$(arch)"
205     rvecho "${retval}"
206    }

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