Magellan Linux

Annotation of /mcore-src/trunk/mcore-tools/src/modules/helpdesk/mcore-helpdesk-unit.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2722 - (hide annotations) (download)
Fri Dec 18 14:39:35 2015 UTC (8 years, 5 months ago) by niro
File size: 305 byte(s)
-added mcore-helpdesk-{unit,phone} helper scripts
1 niro 2722 #!/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}/helpdesk/unit ]
9     then
10     source ${MCORE_CONFIG_PATH}/helpdesk/unit
11     fi
12    
13     if [[ -z ${HELPDESK_UNIT} ]]
14     then
15     HELPDESK_UNIT="UNKNOWN"
16     RETVAL=1
17     fi
18    
19     echo "${HELPDESK_UNIT}"
20     exit ${RETVAL}