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 2754 by niro, Thu Sep 17 12:56:08 2015 UTC revision 2755 by niro, Tue Feb 2 14:11:44 2016 UTC
# Line 1  Line 1 
1  # $Id$  # $Id$
2    
3    push_firstboot 10_system_passwd
4    
5  push_config 10_system_passwd  push_config 10_system_passwd
6    
7  help_system_reboot()  help_system_reboot()
# Line 91  push_config_10_system_passwd() Line 93  push_config_10_system_passwd()
93   fi   fi
94   done   done
95  }  }
96    
97    push_firstboot_10_system_passwd()
98    {
99     local serial="$1"
100     local i
101     local auth
102    
103     # now setup some empty database entries if the does not exist
104     for i in user root
105     do
106     auth=$(mysqldo "select ${i} from client_auth where serial=${serial};")
107     if [[ -z ${auth} ]] || [[ ${auth} = NULL ]]
108     then
109     decho "set empty ${i} pass"
110     import_resource client_auth "${serial}" "${i}" ""
111     fi
112     done
113    }

Legend:
Removed from v.2754  
changed lines
  Added in v.2755