  restart() {
 --- homematic/arm-gnueabihf/packages-eQ-3/RFD/etc/init.d/S61rfd.orig
 +++ homematic/arm-gnueabihf/packages-eQ-3/RFD/etc/init.d/S61rfd
-@@ -7,30 +7,42 @@
+@@ -7,30 +7,52 @@
  CFG_TEMPLATE_DIR=/etc/config_templates
  PIDFILE=/var/run/rfd.pid
  

+    # otherwise disable the whole [Interface 0] part
+    sed -i -e '/^\[Interface 0\]/,/^\s*$/ s/^/#/' /etc/config/rfd.conf
+  fi
 
 	if [ ! -e /etc/config/syslog ] ; then
 		cp $CFG_TEMPLATE_DIR/syslog /etc/config
@@ -42,28 +54,27 @@
 }
 
 waitStartupComplete() {

+source /var/hm_mode 2>/dev/null
+
+# skip this startup in LAN Gateway or HmIP-RFUSB mode
+[[ ${HM_MODE} == "HMLGW" || ${HM_MODE} == "HmIP-RFUSB" || ${HM_MODE} == "HmRF-CFG-USB-2" ]] && exit 0
+
 init() {
-	export TZ=`cat /etc/config/TZ`
