Magellan Linux

Annotation of /mcore-src/trunk/mcore-tools/src/mcore-register-client.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2453 - (hide annotations) (download)
Thu Sep 3 14:24:20 2015 UTC (8 years, 9 months ago) by niro
File size: 348 byte(s)
-always exit 0 if config.d/serial exist
1 niro 2434 #!/bin/bash
2    
3     MCORE_LIBDIR="@@MCORE_LIBDIR@@"
4     source @@SYSCONFDIR@@/mcore/mcore.conf
5     source ${MCORE_LIBDIR}/include/common.global.class
6     source ${MCORE_LIBDIR}/include/register.global.class
7    
8 niro 2437 SSLSAY_IP="${MCORE_CONTROL_SERVER}"
9     SSLSAY_PORT="6666"
10 niro 2434 register_client
11 niro 2453
12     if [ -f ${MCORE_CONFIG_PATH}/serial ]
13     then
14     RETVAL=0
15     else
16     RETVAL=1
17     fi
18    
19     exit ${RETVAL}