Commit 010c26d0 authored by Michael Ott's avatar Michael Ott Committed by root
Browse files

Fixes do SysFsPusher init script and install routine

parent b85d87a9
......@@ -10,13 +10,13 @@
### END INIT INFO
DCDB_PREFIX=%DCDB_PREFIX%
LD_LIBRARY_PATH=${DCDB_PREFIX}/lib/
export LD_LIBRARY_PATH=${DCDB_PREFIX}/lib/
case $1 in
start)
echo "Starting SysFsPusher"
DEVICEID=`ifconfig eth0|awk -F':' '/HWaddr/ { print $4$5$6$7 }'`
BIC=$((`hostname -s| sed 's/\(deep-\)*bic\([0-9]*\)/\2/'`-1))
BIC=$((10#`hostname -s| sed 's/\(deep-\)*bic\([0-9]*\)/\2/'`-1))
CHASSISID=$(($BIC/2))
BICID=$(($BIC%2))
printf -v TOPIC "/00/00/0000/%02X/%02X/FF/FF/%08s/0000" $CHASSISID $BICID $DEVICEID
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment