#!/bin/sh # # $Id$ # # Copyright EFKON AG 2015 #echo "$0 called with parameters $*" case "$1" in configure) update-rc.d fancymodbus-simulator defaults test -f /etc/default/fancymodbus-simulator && . /etc/default/fancymodbus-simulator if [ "$FANCYMODBUS_SIMULATOR_START" = "yes" ] ; then echo "Starting FancyModbus-Simulator after installation or upgrade ..." /etc/init.d/fancymodbus-simulator start else echo "FANCYMODBUS_SIMULATOR_START is not set to \"yes\" in /etc/default/fancymodbus-simulator" echo "therefore not starting it automatically after installation or upgrade ..." fi exit 0 ;; esac