#! /bin/sh
# preinst script for wlanthermo

if [ -f /usr/sbin/wlt_2_comp.py ]
then
  service WLANThermo stop
  service WLANThermoWD stop
  
fi

killall python

if [ -f /etc/init.d/plot ]
then
  service plot stop
  update-rc.de plot remove
  rm /etc/init.d/plot
  rm /usr/sbin/plot.sh
fi



if [ -f /var/www/conf/WLANThermo.conf ]
then
    echo Sichere alte Konfiguration
    cp /var/www/conf/WLANThermo.conf /var/www/conf/WLANThermo.conf.old
else
    echo Noch keine Konfiguration vorhanden!
fi
