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() |
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 |
|
} |