Magellan Linux

Annotation of /mcore-src/tags/mcore-tools-1_0_3/src/mcore-register-client.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2787 - (hide annotations) (download)
Wed Feb 17 10:49:12 2016 UTC (8 years, 3 months ago) by niro
Original Path: mcore-src/trunk/mcore-tools/src/mcore-register-client.in
File size: 372 byte(s)
-use mcore-controlserver executable instead of the MCORE_CONTROL_SERVER variable everywhere to honor MCORE_CONTROLSERVER from cmdline and also catch even more communication errors as the executable verifies the availablity of the server
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 2787 SSLSAY_IP="$(mcore-controlserver)"
9 niro 2437 SSLSAY_PORT="6666"
10 niro 2434 register_client
11 niro 2453
12 niro 2455 if [[ -z $(mcore-serial) ]] || [[ $(mcore-serial) = UNKNOWN ]]
13 niro 2453 then
14 niro 2454 RETVAL=1
15     else
16 niro 2453 RETVAL=0
17     fi
18    
19     exit ${RETVAL}