-
Notifications
You must be signed in to change notification settings - Fork 1
/
00_constants
executable file
·44 lines (39 loc) · 1.17 KB
/
00_constants
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
#h-------------------------------------------------------------------------------
#h
#h Name: constants
#h Type: Linux shell script
#h Purpose: define constants for packet read_62056-21_Meter
#h Project:
#h Usage: #set path constants
#h . `dirname $(readlink -f $0)`/00_constants
#h Result:
#h Examples:
#h Outline:
#h Resources:
#h Platforms: Linux
#h Authors: peb piet66
#h Version: V1.0.0 2023-06-24/peb
#v History: V1.0.0 2022-11-20/peb first version
#h Copyright: (C) piet66 2022
#h License: MIT
#h
#h-------------------------------------------------------------------------------
MODULE='constants';
VERSION='V1.0.0'
WRITTEN='2023-06-24/peb'
PACKET_NAME=read_62056-21_Meter
PACKET_PATH=`dirname $(readlink -f $0)`
PACKET_DIR=`basename $PACKET_PATH`
echo PACKET_NAME=$PACKET_NAME
echo PACKET_PATH=$PACKET_PATH
echo PACKET_DIR=$PACKET_DIR
echo ''
cd $PACKET_PATH
### name of bash script to run (without path)
### -----------------------------------------
BASH_NAME=read_meter.bash
#BASH_NAME=read_meter_ZWay.bash
#BASH_NAME=read_meter_RRDtool.bash
echo BASH_NAME=$BASH_NAME
echo ''