Magellan Linux

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

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

revision 2877 by niro, Wed Aug 30 13:54:01 2017 UTC revision 2878 by niro, Fri Aug 14 11:35:04 2020 UTC
# Line 39  control_system_console() Line 39  control_system_console()
39   local serial="${CLASS_ARGV[0]}"   local serial="${CLASS_ARGV[0]}"
40   local user="${CLASS_ARGV[1]}"   local user="${CLASS_ARGV[1]}"
41    
42   control_client "${serial}" set system.console "${user}"   control_client "${serial}" set system.console "\"${user}\""
43  }  }
44    
45  help_system_passwd()  help_system_passwd()
# Line 81  get_system_cmdline() Line 81  get_system_cmdline()
81   local serial="${CLASS_ARGV[0]}"   local serial="${CLASS_ARGV[0]}"
82   local variable="${CLASS_ARGV[1]}"   local variable="${CLASS_ARGV[1]}"
83    
84   control_client "${serial}" get system.cmdline "${variable}"   control_client "${serial}" get system.cmdline "\"${variable}\""
85  }  }
86    
87  help_system_arch()  help_system_arch()
# Line 115  push_config_10_system_passwd() Line 115  push_config_10_system_passwd()
115   then   then
116   decho "pass is 'NULL' for user '${user}', ignoring"   decho "pass is 'NULL' for user '${user}', ignoring"
117   else   else
118   control_client "${serial}" set system.passwd "${user}" "${pass}"   control_client "${serial}" set system.passwd "\"${user}\"" "\"${pass}\""
119   fi   fi
120   done   done
121  }  }

Legend:
Removed from v.2877  
changed lines
  Added in v.2878