Contents of /mcore-src/trunk/mcore-tools/src/mcore-serial.in
Parent Directory | Revision Log
Revision 2448 -
(show annotations)
(download)
Thu Sep 3 13:57:57 2015 UTC (9 years ago) by niro
File size: 292 byte(s)
Thu Sep 3 13:57:57 2015 UTC (9 years ago) by niro
File size: 292 byte(s)
-added mcore-serial program to print the client serial systemwide
1 | #!/bin/bash |
2 | |
3 | MCORE_LIBDIR="@@MCORE_LIBDIR@@" |
4 | source @@SYSCONFDIR@@/mcore/mcore.conf |
5 | |
6 | RETVAL=0 |
7 | |
8 | if [[ -f ${MCORE_CONFIG_PATH}/serial ]] |
9 | then |
10 | source ${MCORE_CONFIG_PATH}/serial |
11 | fi |
12 | |
13 | if [[ -z ${CLIENT_SERIAL} ]] |
14 | then |
15 | CLIENT_SERIAL="UNKNOWN" |
16 | RETVAL=1 |
17 | fi |
18 | |
19 | echo "${CLIENT_SERIAL}" |
20 | exit ${RETVAL} |