diff --git a/kura/distrib/pom.xml b/kura/distrib/pom.xml
index dbe9f16433a..d6ead1685b9 100644
--- a/kura/distrib/pom.xml
+++ b/kura/distrib/pom.xml
@@ -2,7 +2,7 @@
-
-
-
- /var/log
- kura
-
-
-
-
-
-
- %d{ISO8601} [%t] %-5p %c{1.} - %m%n%throwable{full}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/kura/distrib/src/main/resources/raspberry-pi-arm64-nn/snapshot_0.xml b/kura/distrib/src/main/resources/raspberry-pi-arm64-nn/snapshot_0.xml
deleted file mode 100644
index b26ea4ae7d6..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-arm64-nn/snapshot_0.xml
+++ /dev/null
@@ -1,392 +0,0 @@
-
-
-
-
-
-
- false
-
-
- org.eclipse.kura.watchdog.WatchdogService
-
-
- 10000
-
-
-
-
-
-
- SA
-
-
- 10
-
-
- jdbc:h2:mem:kuradb
-
-
- org.eclipse.kura.core.db.H2DbService
-
-
- 900
-
-
- org.eclipse.kura.db.H2DbService
-
-
-
-
-
-
- true
-
-
- 123
-
-
- 3600
-
-
- java-ntp
-
-
- false
-
-
- 10000
-
-
- 0.pool.ntp.org
-
-
- org.eclipse.kura.clock.ClockService
-
-
-
-
-
-
- memory
-
-
- true
-
-
- false
-
-
- 4
-
-
- org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport
-
-
- 20
-
-
- org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport
-
-
- mqtt://broker-url:1883/
-
-
- 30
-
-
- account-name
-
-
- $EDC/#account-name/#client-id/MQTT/LWT
-
-
- 0
-
-
- use-ssl-service-config
-
-
- org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory
-
-
- username
-
-
-
-
-
-
- 60
-
-
- 0
-
-
- true
-
-
- 9
-
-
- org.eclipse.kura.data.DataService
-
-
- 10
-
-
- 10
-
-
- org.eclipse.kura.data.DataService
-
-
- 900
-
-
- false
-
-
- SECONDS
-
-
- 1
-
-
- org.eclipse.kura.db.H2DbService
-
-
- (kura.service.pid=org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport)
-
-
- 60
-
-
- false
-
-
- 1
-
-
- org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory
-
-
- true
-
-
- 1000
-
-
-
-
-
-
- 1-3.2
-
-
- false
-
-
- 0
-
-
- 1
-
-
- 115200
-
-
- org.eclipse.kura.position.PositionService
-
-
- 8
-
-
-
-
-
-
- $EDC
-
-
- Raspberry Pi 3/4
-
-
- device-name
-
-
- kura-protobuf
-
-
- false
-
-
- org.eclipse.kura.cloud.CloudService
-
-
- org.eclipse.kura.cloud.CloudService
-
-
- true
-
-
- false
-
-
- true
-
-
- (kura.service.pid=org.eclipse.kura.data.DataService)
-
-
- org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory
-
-
-
-
-
-
- TLSv1.2
-
-
- true
-
-
- (kura.service.pid=SSLKeystore)
-
-
- org.eclipse.kura.ssl.SslManagerService
-
-
- 100
-
-
-
-
-
-
- 443
-
-
- 4443
-
-
- (kura.service.pid=HttpsKeystore)
-
-
- org.eclipse.kura.http.server.manager.HttpService
-
-
- org.eclipse.kura.http.server.manager.HttpService
-
-
-
-
-
-
- /opt/eclipse/kura/user/security/httpskeystore.ks
-
-
- Y2hhbmdlaXQ=
-
-
- true
-
-
- org.eclipse.kura.core.keystore.FilesystemKeystoreServiceImpl
-
-
- HttpsKeystore
-
-
-
-
-
-
- /opt/eclipse/kura/user/security/cacerts.ks
-
-
- Y2hhbmdlaXQ=
-
-
- true
-
-
- org.eclipse.kura.core.keystore.FilesystemKeystoreServiceImpl
-
-
- SSLKeystore
-
-
-
-
-
-
- [{"name":"kura.user.admin","credentials":{"kura.password":"jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg="},"properties":{"kura.need.password.change":"true"}},{"name":"kura.user.appadmin","credentials":{"kura.password":"3hPckF8Zc+IF3pVineBvck3zJERUl8itosySULE1hpM="},"properties":{"kura.need.password.change":"true"}}]
-
-
- [{"name":"kura.permission.kura.admin","basicMembers":["kura.user.admin"]},{"name":"kura.permission.kura.cloud.connection.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.kura.device"},{"name":"kura.permission.kura.maintenance"},{"name":"kura.permission.kura.packages.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.kura.wires.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.rest.assets"},{"name":"kura.permission.rest.cloudconnection"},{"name":"kura.permission.rest.command"},{"name":"kura.permission.rest.configuration"},{"name":"kura.permission.rest.deploy"},{"name":"kura.permission.rest.identity"},{"name":"kura.permission.rest.inventory"},{"name":"kura.permission.rest.keystores"},{"name":"kura.permission.rest.position"},{"name":"kura.permission.rest.security"},{"name":"kura.permission.rest.system"},{"name":"kura.permission.rest.tamper.detection"},{"name":"kura.permission.rest.wires.admin"}]
-
-
-
-
-
-
- /var/log/kura.log
-
-
- org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider
-
-
- filesystem-kura-log
-
-
- org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider-1636726365743-7
-
-
-
-
-
-
- /var/log/kura-audit.log
-
-
- org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider
-
-
- filesystem-kura-audit-log
-
-
- org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider-1636726365743-8
-
-
-
-
-
-
- false
-
-
- false
-
-
- org.eclipse.kura.internal.rest.provider.RestService
-
-
- org.eclipse.kura.internal.rest.provider.RestService
-
-
-
-
diff --git a/kura/distrib/src/main/resources/raspberry-pi-arm64/deb/control/control b/kura/distrib/src/main/resources/raspberry-pi-arm64/deb/control/control
deleted file mode 100644
index 54ab24d7e1e..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-arm64/deb/control/control
+++ /dev/null
@@ -1,19 +0,0 @@
-Package: kura
-Version: [[project.version]]
-Section: misc
-Priority: low
-Depends: hostapd, isc-dhcp-server, iw,
- dos2unix, bind9, unzip,
- ethtool, telnet, bluez-hcidump,
- bluez, wireless-tools, net-tools,
- iptables, chrony, ntpdate,
- ifupdown, pi-bluetooth, rpi.gpio-common,
- openjdk-8-jre-headless | temurin-8-jdk | openjdk-17-jre-headless | temurin-17-jdk,
- dmidecode, cron, network-manager, modemmanager
-Architecture: all
-Maintainer: support@eurotech.com
-Description: Kura is an inclusive software framework that puts a layer
- between the operating system and the customer application, with industry
- standard interfaces that shorten custom development time, simplified coding
- and software that can be easily ported from one hardware platform
- to another.
diff --git a/kura/distrib/src/main/resources/raspberry-pi-arm64/deb/control/postinst b/kura/distrib/src/main/resources/raspberry-pi-arm64/deb/control/postinst
deleted file mode 100755
index f5afce50484..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-arm64/deb/control/postinst
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/bin/bash
-
-INSTALL_DIR=/opt/eclipse
-TIMESTAMP=`date +%Y%m%d%H%M%S`
-LOG=/tmp/kura_install_${TIMESTAMP}.log
-WD_TMP_FILE=/tmp/watchdog
-REFRESH_TIME=5
-TIMEOUT_TIME=300
-
-##############################################
-# UTILITY FUNCTIONS
-##############################################
-# Run postInstall function and start watchdog if needed
-function runPostInstall {
- if [ -f "${WD_TMP_FILE}" ]; then
- WATCHDOG_DEVICE=`cat ${WD_TMP_FILE}`
- echo "Got watchdog ${WATCHDOG_DEVICE}" >> $LOG 2>&1
- postInstall &
- PID=$!
- START=$(date +%s)
-
- while [ -d "/proc/$PID" ]; do
- echo w > ${WATCHDOG_DEVICE}
- DELTA=$(($(date +%s) - $START))
- if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then
- echo "The installation process is not responding. It'll be stopped."
- kill -9 $PID >> /dev/null 2>&1
- fi
- sleep $REFRESH_TIME
- done
- stopWatchdog
- else
- postInstall &
- PID=$!
- START=$(date +%s)
-
- while [ -d "/proc/$PID" ]; do
- DELTA=$(($(date +%s) - $START))
- if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then
- echo "The installation process is not responding. It'll be stopped."
- kill -9 $PID >> /dev/null 2>&1
- fi
- sleep $REFRESH_TIME
- done
- fi
-}
-
-# Deactivate watchdog device if possible
-function stopWatchdog {
- if [ -n "${WATCHDOG_DEVICE}" ]; then
- echo V > ${WATCHDOG_DEVICE}
- fi
-}
-
-# Pre-install script
-function postInstall {
- mkdir -p ${INSTALL_DIR} >> ${LOG} 2>&1
- unzip /tmp/kura_*.zip -d ${INSTALL_DIR} >> ${LOG} 2>&1
-
- #install KURA files
- sh ${INSTALL_DIR}/kura_*/install/kura_install.sh >> ${LOG} 2>&1
-
- #clean up
- rm -rf ${INSTALL_DIR}/kura/install >> ${LOG} 2>&1
- rm /tmp/kura_*.zip >> ${LOG} 2>&1
-
- #move the log file
- mkdir -p ${INSTALL_DIR}/kura/log
- mv ${LOG} ${INSTALL_DIR}/kura/log/
-
- #flush all cached filesystem to disk
- sync
-
- echo ""
- echo "Finished. KURA has been installed to ${INSTALL_DIR}/kura and will start automatically after a reboot"
-}
-##############################################
-# END UTILITY FUNCTIONS
-##############################################
-
-##############################################
-# POST INSTALL SCRIPT
-##############################################
-runPostInstall
-exit 0
-#############################################
-# END POST INSTALL SCRIPT
-##############################################
-
diff --git a/kura/distrib/src/main/resources/raspberry-pi-arm64/deb/control/preinst b/kura/distrib/src/main/resources/raspberry-pi-arm64/deb/control/preinst
deleted file mode 100755
index b270398de86..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-arm64/deb/control/preinst
+++ /dev/null
@@ -1,102 +0,0 @@
-#!/bin/bash
-
-INSTALL_DIR=/opt/eclipse
-WD_TMP_FILE=/tmp/watchdog
-REFRESH_TIME=5
-TIMEOUT_TIME=300
-
-##############################################
-# UTILITY FUNCTIONS
-##############################################
-# Run preInstall function and start watchdog if needed
-function runPreInstall {
- if [ -f "${WD_TMP_FILE}" ]; then
- WATCHDOG_DEVICE=`cat ${WD_TMP_FILE}`
- preInstall &
- PID=$!
- START=$(date +%s)
-
- while [ -d "/proc/$PID" ]; do
- echo w > ${WATCHDOG_DEVICE}
- DELTA=$(($(date +%s) - $START))
- if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then
- echo "The installation process is not responding. It'll be stopped."
- kill -9 $PID >> /dev/null 2>&1
- fi
- sleep $REFRESH_TIME
- done
- stopWatchdog
- else
- preInstall &
- PID=$!
- START=$(date +%s)
-
- while [ -d "/proc/$PID" ]; do
- DELTA=$(($(date +%s) - $START))
- if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then
- echo "The installation process is not responding. It'll be stopped."
- kill -9 $PID >> /dev/null 2>&1
- fi
- sleep $REFRESH_TIME
- done
- fi
-}
-
-# Deactivate watchdog device if possible
-function stopWatchdog {
- if [ -n "${WATCHDOG_DEVICE}" ]; then
- echo V > ${WATCHDOG_DEVICE}
- fi
-}
-
-# Pre-install script
-function preInstall {
- #clean up old installation if present
- rm -fr /opt/eclipse/kura* >> /tmp/kura_install.log 2>&1
- rm -fr ${INSTALL_DIR}/kura* >> /tmp/kura_install.log 2>&1
- rm -fr /tmp/.kura/ >> /tmp/kura_install.log 2>&1
- rm /etc/init.d/firewall >> /tmp/kura_install.log 2>&1
- rm /etc/dhcpd-*.conf >> /tmp/kura_install.log 2>&1
- rm /etc/wpa_supplicant.conf >> /tmp/kura_install.log 2>&1
- rm /etc/hostapd.conf >> /tmp/kura_install.log 2>&1
- rm /tmp/coninfo-* >> /tmp/kura_install.log 2>&1
- rm /var/log/kura.log >> /tmp/kura_install.log 2>&1
- rm -fr /etc/ppp/chat >> /tmp/kura_install.log 2>&1
- rm -fr /etc/ppp/peers >> /tmp/kura_install.log 2>&1
- rm -fr /etc/ppp/scripts >> /tmp/kura_install.log 2>&1
- rm /etc/ppp/*ap-secrets >> /tmp/kura_install.log 2>&1
- rm -f kura-*.zip >> /tmp/kura_install.log 2>&1
- rm -f kura_*.zip >> /tmp/kura_install.log 2>&1
-
- echo ""
-}
-##############################################
-# END UTILITY FUNCTIONS
-##############################################
-
-##############################################
-# PRE-INSTALL SCRIPT
-##############################################
-PIDS=`pgrep java`
-
-echo ""
-echo "Installing Kura..."
-echo "Installing Kura..." > /tmp/kura_install.log 2>&1
-
-#Kill JVM and monit for installation
-if [ -f "/var/run/kura.pid" ] ; then
- KURA_PID=`cat /var/run/kura.pid`
-
- for pid in "${PIDS[@]}"
- do
- if [ "$KURA_PID" == "$pid" ] ; then
- `kill $pid` >> /tmp/kura_install.log 2>&1
- fi
- done
-fi
-
-runPreInstall
-##############################################
-# END PRE-INSTALL SCRIPT
-##############################################
-
diff --git a/kura/distrib/src/main/resources/raspberry-pi-arm64/deb/control/prerm b/kura/distrib/src/main/resources/raspberry-pi-arm64/deb/control/prerm
deleted file mode 100644
index 2e8a9471e98..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-arm64/deb/control/prerm
+++ /dev/null
@@ -1,119 +0,0 @@
-#!/bin/bash
-
-INSTALL_DIR=/opt/eclipse
-WD_TMP_FILE=/tmp/watchdog
-REFRESH_TIME=5
-TIMEOUT_TIME=300
-
-##############################################
-# UTILITY FUNCTIONS
-##############################################
-# Run preRemove function and start watchdog if needed
-function runPreRemove {
- if [ -f "${WD_TMP_FILE}" ]; then
- WATCHDOG_DEVICE=`cat ${WD_TMP_FILE}`
- preRemove &
- PID=$!
- START=$(date +%s)
-
- while [ -d "/proc/$PID" ]; do
- echo w > ${WATCHDOG_DEVICE}
- DELTA=$(($(date +%s) - $START))
- if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then
- echo "The installation process is not responding. It'll be stopped."
- kill -9 $PID >> /dev/null 2>&1
- fi
- sleep $REFRESH_TIME
- done
- stopWatchdog
- else
- preRemove &
- PID=$!
- START=$(date +%s)
-
- while [ -d "/proc/$PID" ]; do
- DELTA=$(($(date +%s) - $START))
- if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then
- echo "The installation process is not responding. It'll be stopped."
- kill -9 $PID >> /dev/null 2>&1
- fi
- sleep $REFRESH_TIME
- done
- fi
-}
-
-# Deactivate watchdog device if possible
-function stopWatchdog {
- if [ -n "${WATCHDOG_DEVICE}" ]; then
- echo V > ${WATCHDOG_DEVICE}
- fi
-}
-
-# Pre-remove script
-function preRemove {
- #Remove INIT scripts
- if [ -f /etc/init.d/kura ] ; then
- rm /etc/init.d/kura
- update-rc.d kura remove
- fi
- if [ -f /lib/systemd/system/kura.service ] ; then
- systemctl disable kura
- rm /lib/systemd/system/kura.service
- fi
- if [ -f /etc/init.d/firewall ] ; then
- rm /etc/init.d/firewall
- update-rc.d firewall remove
- fi
- if [ -f /lib/systemd/system/firewall.service ] ; then
- systemctl disable firewall
- rm /lib/systemd/system/firewall.service
- fi
-
- #Roll-back logrotate setup
- rm -f /var/log/logrotate-kura.status
- rm -f /etc/logrotate-kura.conf
- rm -f /etc/cron.d/logrotate-kura
-
- rm -f /var/log/kura*.log
- rm -f /var/log/kura*.gz
- rm -rf /tmp/.kura
- rm -rf /tmp/kura
-
- if [ -d "${INSTALL_DIR}/kura" ] ; then
- ${INSTALL_DIR}/kura/.data/manage_kura_users.sh -u
- PARENT=`readlink -f ${INSTALL_DIR}/kura`
- rm -rf ${INSTALL_DIR}/kura
- rm -rf $PARENT
- fi
-
- echo ""
- echo "Uninstalling KURA... Done!"
-}
-##############################################
-# END UTILITY FUNCTIONS
-##############################################
-
-##############################################
-# PRE-REMOVE SCRIPT
-##############################################
-PIDS=`pgrep java`
-
-echo ""
-echo "Uninstalling KURA..."
-
-#Kill JVM and monit for installation
-if [ -f "/var/run/kura.pid" ] ; then
- KURA_PID=`cat /var/run/kura.pid`
-
- for pid in "${PIDS[@]}"
- do
- if [ "$KURA_PID" == "$pid" ] ; then
- `kill $pid` >> /tmp/kura_install.log 2>&1
- fi
- done
-fi
-
-runPreRemove
-##############################################
-# END PRE-REMOVE SCRIPT
-##############################################
diff --git a/kura/distrib/src/main/resources/raspberry-pi-arm64/dhcpd-eth0.conf b/kura/distrib/src/main/resources/raspberry-pi-arm64/dhcpd-eth0.conf
deleted file mode 100644
index 3af2e593189..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-arm64/dhcpd-eth0.conf
+++ /dev/null
@@ -1,15 +0,0 @@
-# enabled? true
-# prefix: 24
-# pass DNS? true
-
-subnet 172.16.0.0 netmask 255.255.255.0 {
- option domain-name-servers 172.16.0.1;
-
- interface eth0;
- option routers 172.16.0.1;
- default-lease-time 7200;
- max-lease-time 7200;
- pool {
- range 172.16.0.100 172.16.0.110;
- }
-}
diff --git a/kura/distrib/src/main/resources/raspberry-pi-arm64/dhcpd-wlan0.conf b/kura/distrib/src/main/resources/raspberry-pi-arm64/dhcpd-wlan0.conf
deleted file mode 100644
index 919fbf68fb6..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-arm64/dhcpd-wlan0.conf
+++ /dev/null
@@ -1,15 +0,0 @@
-# enabled? true
-# prefix: 24
-# pass DNS? true
-
-subnet 172.16.1.0 netmask 255.255.255.0 {
- option domain-name-servers 172.16.1.1;
-
- interface wlan0;
- option routers 172.16.1.1;
- default-lease-time 7200;
- max-lease-time 7200;
- pool {
- range 172.16.1.100 172.16.1.110;
- }
-}
diff --git a/kura/distrib/src/main/resources/raspberry-pi-arm64/firewall.init b/kura/distrib/src/main/resources/raspberry-pi-arm64/firewall.init
deleted file mode 100644
index 6e181d7dc0d..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-arm64/firewall.init
+++ /dev/null
@@ -1,111 +0,0 @@
-#!/bin/bash
-# iptables-restore script
-iptables_config_file=/etc/sysconfig/iptables
-ipforward_file=/proc/sys/net/ipv4/ip_forward
-enable_ipforwarding=false;
-
-create_filter_chains() {
- # create custom chains if needed
- custom_filter_chains=(input-kura output-kura forward-kura)
- for custom_chain in ${custom_filter_chains[@]}; do
- chain=(${custom_chain//-/ })
- iptables -C ${chain[0]^^} -j $custom_chain -t filter > /dev/null 2>&1
- if [[ $? -ne 0 ]]; then
- iptables -N $custom_chain -t filter > /dev/null 2>&1
- iptables -I ${chain[0]^^} -t filter -j $custom_chain > /dev/null 2>&1
- fi
- done
- custom_filter_chains=(forward-kura-pf forward-kura-ipf)
- for custom_chain in ${custom_filter_chains[@]}; do
- iptables -C forward-kura -j $custom_chain -t filter > /dev/null 2>&1
- if [[ $? -ne 0 ]]; then
- iptables -N $custom_chain -t filter > /dev/null 2>&1
- iptables -I forward-kura -t filter -j $custom_chain > /dev/null 2>&1
- fi
- done
-}
-
-create_nat_chains() {
- custom_nat_chains=(prerouting-kura postrouting-kura input-kura output-kura)
- for custom_chain in ${custom_nat_chains[@]}; do
- chain=(${custom_chain//-/ }[0])
- iptables -C ${chain[0]^^} -j $custom_chain -t nat > /dev/null 2>&1
- if [[ $? -ne 0 ]]; then
- iptables -N $custom_chain -t nat > /dev/null 2>&1
- iptables -I ${chain[0]^^} -t nat -j $custom_chain > /dev/null 2>&1
- fi
- done
- iptables -C prerouting-kura -j prerouting-kura-pf -t nat > /dev/null 2>&1
- if [[ $? -ne 0 ]]; then
- iptables -N prerouting-kura-pf -t nat > /dev/null 2>&1
- iptables -I prerouting-kura -t nat -j prerouting-kura-pf > /dev/null 2>&1
- fi
- custom_nat_chains=(postrouting-kura-pf postrouting-kura-ipf)
- for custom_chain in ${custom_nat_chains[@]}; do
- iptables -C postrouting-kura -j $custom_chain -t nat > /dev/null 2>&1
- if [[ $? -ne 0 ]]; then
- iptables -N $custom_chain -t nat > /dev/null 2>&1
- iptables -I postrouting-kura -t nat -j $custom_chain > /dev/null 2>&1
- fi
- done
-}
-
-create_mangle_chains() {
- custom_mangle_chains=(prerouting-kura postrouting-kura input-kura output-kura forward-kura)
- for custom_chain in ${custom_mangle_chains[@]}; do
- chain=(${custom_chain//-/ }[0])
- iptables -C ${chain[0]^^} -j $custom_chain -t mangle > /dev/null 2>&1
- if [[ $? -ne 0 ]]; then
- iptables -N $custom_chain -t mangle > /dev/null 2>&1
- iptables -I ${chain[0]^^} -t mangle -j $custom_chain > /dev/null 2>&1
- fi
- done
-}
-
-configure_policies() {
- # configure policies for standard chains
- policy=$(iptables -nL -t filter | grep policy | grep INPUT)
- if [[ "$policy" == *ACCEPT* ]]; then
- iptables -P INPUT DROP
- fi
- policy=$(iptables -nL -t filter | grep policy | grep OUTPUT)
- if [[ "$policy" == *DROP* ]]; then
- iptables -P OUTPUT ACCEPT
- fi
- policy=$(iptables -nL -t filter | grep policy | grep FORWARD)
- if [[ "$policy" == *ACCEPT* ]]; then
- iptables -P FORWARD DROP
- fi
-}
-
-configure_ip_forwarding() {
- # enable ip forwarding if needed
- if [ -f $iptables_config_file ]; then
- while IFS='' read -r line || [[ -n "$line" ]]; do
- if [[ $line =~ "-A forward-kura" ]]; then
- enable_ipforwarding=true
- break
- fi
- done < $iptables_config_file
- fi
- if [ $enable_ipforwarding = true ]; then
- echo "1" > $ipforward_file
- else
- echo "0" > $ipforward_file
- fi
-}
-
-if [ -f $iptables_config_file ]; then
- iptables-restore < $iptables_config_file
-fi
-
-create_filter_chains
-create_nat_chains
-create_mangle_chains
-configure_policies
-configure_ip_forwarding
-
-# source a custom firewall script
-if [ -f /etc/init.d/firewall_cust ]; then
- source /etc/init.d/firewall_cust 2> /dev/null
-fi
\ No newline at end of file
diff --git a/kura/distrib/src/main/resources/raspberry-pi-arm64/firewall.service b/kura/distrib/src/main/resources/raspberry-pi-arm64/firewall.service
deleted file mode 100644
index d3dec2c4da1..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-arm64/firewall.service
+++ /dev/null
@@ -1,11 +0,0 @@
-[Unit]
-Description=Firewall configuration
-Before=network-pre.target docker.service
-Wants=network-pre.target
-
-[Service]
-Type=oneshot
-ExecStart=/bin/sh KURA_DIR/bin/firewall
-
-[Install]
-WantedBy=multi-user.target
diff --git a/kura/distrib/src/main/resources/raspberry-pi-arm64/hostapd.conf b/kura/distrib/src/main/resources/raspberry-pi-arm64/hostapd.conf
deleted file mode 100644
index 33f2b7b01e7..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-arm64/hostapd.conf
+++ /dev/null
@@ -1,62 +0,0 @@
-# /etc/hostapd/hostapd.conf
-
-#example: wlan0
-interface=wlan0
-#example: nl80211
-driver=nl80211
-
-# SSID to use. This will be the "name" of the accesspoint
-#example: catalyst
-ssid=kura_gateway
-
-# basic operational settings
-#example: g
-hw_mode=g
-
-wme_enabled=0
-ieee80211n=0
-
-#example: 1
-channel=1
-
-# Logging and debugging settings: more of this in original config file
-logger_syslog=-1
-logger_syslog_level=2
-logger_stdout=-1
-logger_stdout_level=2
-dump_file=/tmp/hostapd.dump
-
-# WPA settings. We'll use stronger WPA2
-# bit0 = WPA
-# bit1 = IEEE 802.11i/RSN (WPA2) (dot11RSNAEnabled)
-wpa=2
-
-# Preshared key of between 8-63 ASCII characters.
-# If you define the key in here, make sure that the file is not readable
-# by anyone but root. Alternatively you can use a separate file for the
-# key; see original hostapd.conf for more information.
-#example TheKeyMyCatalystUSES!1
-wpa_passphrase=testKEYS
-
-# Key management algorithm. In this case, a simple pre-shared key (PSK)
-wpa_key_mgmt=WPA-PSK
-
-# The cipher suite to use. We want to use stronger CCMP cipher.
-wpa_pairwise=CCMP
-
-# Change the broadcasted/multicasted keys after this many seconds.
-wpa_group_rekey=600
-
-# Change the master key after this many seconds. Master key is used as a basis
-# (source) for the encryption keys.
-wpa_gmk_rekey=86400
-
-# Send empty SSID in beacons and ignore probe request frames that do not
-# specify full SSID, i.e., require stations to know SSID.
-# default: disabled (0)
-# 1 = send empty (length=0) SSID in beacon and ignore probe request for
-# broadcast SSID
-# 2 = clear SSID (ASCII 0), but keep the original length (this may be required
-# with some clients that do not support empty SSID) and ignore probe
-# requests for broadcast SSID
-ignore_broadcast_ssid=0
diff --git a/kura/distrib/src/main/resources/raspberry-pi-arm64/iptables.init b/kura/distrib/src/main/resources/raspberry-pi-arm64/iptables.init
deleted file mode 100644
index 0a22cc74bef..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-arm64/iptables.init
+++ /dev/null
@@ -1,91 +0,0 @@
-*nat
-:PREROUTING ACCEPT [0:0]
-:INPUT ACCEPT [0:0]
-:OUTPUT ACCEPT [0:0]
-:POSTROUTING ACCEPT [0:0]
-:input-kura - [0:0]
-:output-kura - [0:0]
-:postrouting-kura - [0:0]
-:postrouting-kura-pf - [0:0]
-:postrouting-kura-ipf - [0:0]
-:prerouting-kura - [0:0]
-:prerouting-kura-pf - [0:0]
--I PREROUTING -j prerouting-kura
--I prerouting-kura -j prerouting-kura-pf
--I INPUT -j input-kura
--I OUTPUT -j output-kura
--I POSTROUTING -j postrouting-kura
--I postrouting-kura -j postrouting-kura-pf
--I postrouting-kura -j postrouting-kura-ipf
--A prerouting-kura -j RETURN
--A input-kura -j RETURN
--A output-kura -j RETURN
--A postrouting-kura -o eth0 -j MASQUERADE
--A postrouting-kura -j RETURN
--A postrouting-kura-pf -j RETURN
--A postrouting-kura-ipf -j RETURN
--A prerouting-kura-pf -j RETURN
-COMMIT
-*filter
-:INPUT DROP [0:0]
-:FORWARD DROP [0:0]
-:OUTPUT ACCEPT [0:0]
-:input-kura - [0:0]
-:output-kura - [0:0]
-:forward-kura - [0:0]
-:forward-kura-pf - [0:0]
-:forward-kura-ipf - [0:0]
--I INPUT -j input-kura
--I FORWARD -j forward-kura
--I OUTPUT -j output-kura
--I forward-kura -j forward-kura-pf
--I forward-kura -j forward-kura-ipf
--A input-kura -i wlan0 -p tcp -m tcp --dport 8000 -j ACCEPT
--A input-kura -i eth0 -p tcp -m tcp --dport 8000 -j ACCEPT
--A input-kura -i wlan0 -p udp -m udp --dport 67 -j ACCEPT
--A input-kura -i eth0 -p udp -m udp --dport 67 -j ACCEPT
--A input-kura -i wlan0 -p udp -m udp --dport 53 -j ACCEPT
--A input-kura -i eth0 -p udp -m udp --dport 53 -j ACCEPT
--A input-kura -s 127.0.0.1/32 -p tcp -m tcp --dport 5002 -j ACCEPT
--A input-kura -i wlan0 -p tcp -m tcp --dport 1450 -j ACCEPT
--A input-kura -i eth0 -p tcp -m tcp --dport 1450 -j ACCEPT
--A input-kura -i wlan0 -p tcp -m tcp --dport 443 -j ACCEPT
--A input-kura -i eth0 -p tcp -m tcp --dport 443 -j ACCEPT
--A input-kura -i wlan0 -p tcp -m tcp --dport 4443 -j ACCEPT
--A input-kura -i eth0 -p tcp -m tcp --dport 4443 -j ACCEPT
--A input-kura -i wlan0 -p tcp -m tcp --dport 22 -j ACCEPT
--A input-kura -i eth0 -p tcp -m tcp --dport 22 -j ACCEPT
--A input-kura -i lo -j ACCEPT
--A input-kura -m state --state RELATED,ESTABLISHED -j ACCEPT
--A input-kura -p icmp -m icmp --icmp-type 8 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
--A input-kura -j RETURN
--A forward-kura -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
--A forward-kura -i wlan0 -o eth0 -j ACCEPT
--A forward-kura -j RETURN
--A output-kura -p icmp -m icmp --icmp-type 0 -m state --state RELATED,ESTABLISHED -j ACCEPT
--A output-kura -j RETURN
--A forward-kura-pf -j RETURN
--A forward-kura-ipf -j RETURN
-COMMIT
-*mangle
-:PREROUTING ACCEPT [0:0]
-:INPUT ACCEPT [0:0]
-:OUTPUT ACCEPT [0:0]
-:FORWARD ACCEPT [0:0]
-:POSTROUTING ACCEPT [0:0]
-:input-kura - [0:0]
-:output-kura - [0:0]
-:forward-kura - [0:0]
-:postrouting-kura - [0:0]
-:prerouting-kura - [0:0]
--I PREROUTING -j prerouting-kura
--I INPUT -j input-kura
--I OUTPUT -j output-kura
--I FORWARD -j forward-kura
--I POSTROUTING -j postrouting-kura
--A prerouting-kura -j RETURN
--A input-kura -j RETURN
--A output-kura -j RETURN
--A forward-kura -j RETURN
--A postrouting-kura -j RETURN
-COMMIT
diff --git a/kura/distrib/src/main/resources/raspberry-pi-arm64/jdk.dio.properties b/kura/distrib/src/main/resources/raspberry-pi-arm64/jdk.dio.properties
deleted file mode 100644
index f8d9264b03b..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-arm64/jdk.dio.properties
+++ /dev/null
@@ -1,43 +0,0 @@
-#
-# Copyright (c) 2011, 2021 Eurotech and/or its affiliates and others
-#
-# This program and the accompanying materials are made
-# available under the terms of the Eclipse Public License 2.0
-# which is available at https://www.eclipse.org/legal/epl-2.0/
-#
-# SPDX-License-Identifier: EPL-2.0
-#
-# Contributors:
-# Eurotech
-#
-0 = deviceType: gpio.GPIOPin, pinNumber:0, name:GPIO0
-1 = deviceType: gpio.GPIOPin, pinNumber:1, name:GPIO1
-2 = deviceType: gpio.GPIOPin, pinNumber:2, name:GPI02
-3 = deviceType: gpio.GPIOPin, pinNumber:3, name:GPIO3
-4 = deviceType: gpio.GPIOPin, pinNumber:4, name:GPIO4
-5 = deviceType: gpio.GPIOPin, pinNumber:5, name:GPIO5
-6 = deviceType: gpio.GPIOPin, pinNumber:6, name:GPIO6
-7 = deviceType: gpio.GPIOPin, pinNumber:7, name:GPIO7
-8 = deviceType: gpio.GPIOPin, pinNumber:8, name:GPIO8
-9 = deviceType: gpio.GPIOPin, pinNumber:9, name:GPIO9
-10 = deviceType: gpio.GPIOPin, pinNumber:10, name:GPIO10
-11 = deviceType: gpio.GPIOPin, pinNumber:11, name:GPIO11
-12 = deviceType: gpio.GPIOPin, pinNumber:12, name:GPIO12
-13 = deviceType: gpio.GPIOPin, pinNumber:13, name:GPIO13
-14 = deviceType: gpio.GPIOPin, pinNumber:14, name:GPIO14
-15 = deviceType: gpio.GPIOPin, pinNumber:14, name:GPIO15
-16 = deviceType: gpio.GPIOPin, pinNumber:16, name:GPIO16
-17 = deviceType: gpio.GPIOPin, pinNumber:17, name:GPIO17
-18 = deviceType: gpio.GPIOPin, pinNumber:18, name:GPIO18
-19 = deviceType: gpio.GPIOPin, pinNumber:19, name:GPIO19
-20 = deviceType: gpio.GPIOPin, pinNumber:20, name:GPIO20
-21 = deviceType: gpio.GPIOPin, pinNumber:21, name:GPIO21
-22 = deviceType: gpio.GPIOPin, pinNumber:22, name:GPIO22
-23 = deviceType: gpio.GPIOPin, pinNumber:23, name:GPIO23
-24 = deviceType: gpio.GPIOPin, pinNumber:24, name:GPIO24
-25 = deviceType: gpio.GPIOPin, pinNumber:25, name:GPIO25
-26 = deviceType: gpio.GPIOPin, pinNumber:26, name:GPIO26
-27 = deviceType: gpio.GPIOPin, pinNumber:27, name:GPIO27
-
-gpio.GPIOPin = initValue:0, deviceNumber:0, direction:3, mode:-1, trigger:3
-uart.UART = baudRate:19200, parity:0, dataBits:8, stopBits:1, flowControl:0
diff --git a/kura/distrib/src/main/resources/raspberry-pi-arm64/kura.logrotate b/kura/distrib/src/main/resources/raspberry-pi-arm64/kura.logrotate
deleted file mode 100644
index 8189067fa1e..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-arm64/kura.logrotate
+++ /dev/null
@@ -1,21 +0,0 @@
-# Logrotate file for Kura.
-# Kura generated file. Do not modify or overwrite.
-
-/var/log/kura*.log
-{
- su root kurad
- missingok
- notifempty
- copytruncate
- compress
- rotate 7
- maxsize 10M
- daily
- dateext
- dateformat -%Y%m%d-%s
- create 0600 root root
- sharedscripts
- postrotate
- reload kura >/dev/null 2>&1 || true
- endscript
-}
diff --git a/kura/distrib/src/main/resources/raspberry-pi-arm64/kura.properties b/kura/distrib/src/main/resources/raspberry-pi-arm64/kura.properties
deleted file mode 100644
index 402ce3815e8..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-arm64/kura.properties
+++ /dev/null
@@ -1,100 +0,0 @@
-#
-# Copyright (c) 2011, 2022 Eurotech and/or its affiliates and others
-#
-# This program and the accompanying materials are made
-# available under the terms of the Eclipse Public License 2.0
-# which is available at https://www.eclipse.org/legal/epl-2.0/
-#
-# SPDX-License-Identifier: EPL-2.0
-#
-# Contributors:
-# Eurotech
-#
-
-## -----------------------------------------------------------------------------
-## Kura Properties
-## -----------------------------------------------------------------------------
-kura.name=Eclipse Kura
-kura.version=
-kura.marketplace.compatibility.version=
-kura.company=EUROTECH
-kura.project=raspberry-pi-arm64
-kura.platform=raspberry-pi-arm64
-kura.device.name=Raspberry-Pi
-kura.model.id=Raspberry-Pi
-kura.model.name=Raspberry-Pi
-kura.partNumber=Raspberry-Pi
-# kura.serialNumber=Raspberry-Pi
-kura.serialNumber.provider=cat /proc/cpuinfo | grep Serial | cut -d ' ' -f 2
-kura.bios.version=N/A
-kura.firmware.version=N/A
-kura.primary.network.interface=eth0
-# kura.mac.address= Fetch from Java
-kura.home={kura.install.dir}/{kura.symlink}
-kura.framework.config={kura.install.dir}/{kura.symlink}/framework
-kura.user.config={kura.install.dir}/{kura.symlink}/user
-kura.plugins={kura.install.dir}/{kura.symlink}/plugins
-kura.packages={kura.install.dir}/{kura.symlink}/packages
-kura.data={kura.install.dir}/{kura.symlink}/data
-kura.tmp=/tmp/.kura
-kura.snapshots={kura.install.dir}/{kura.symlink}/user/snapshots
-kura.style.dir={kura.install.dir}/{kura.symlink}/console/skin
-#kura.have.net.admin=true
-kura.net.virtual.devices.config=unmanaged
-kura.log.download.sources=/var/log
-kura.log.download.journal.fields=SYSLOG_IDENTIFIER,PRIORITY,MESSAGE,STACKTRACE
-# os.arch= Fetch from Java
-# os.name= Fetch from Java
-# os.version= Fetch from Java
-os.distribution=Linux
-os.distribution.version=N/A
-# java.version= Fetch from Java
-# java.vendor= Fetch from Java
-# java.vm.name= Fetch from Java
-# java.vm.version= Fetch from Java
-# java.home= Fetch from Java
-# file.separator= Fetch from Java
-kura.command.user=kura
-kura.legacy.bluetooth.beacon.scan=false
-kura.legacy.ppp.logging.enabled=true
-
-
-## -----------------------------------------------------------------------------
-## Remote Configuration Properties
-## -----------------------------------------------------------------------------
-console.device.management.service.ignore=org.eclipse.kura.net.admin.NetworkConfigurationService,org.eclipse.kura.net.admin.FirewallConfigurationService
-
-## -----------------------------------------------------------------------------
-## File upload settings
-## -----------------------------------------------------------------------------
-# default 10240
-file.upload.in.memory.size.threshold=10240
-# -1: unlimited (default)
-file.upload.size.max=-1
-file.command.zip.max.size=100
-file.command.zip.max.number=1024
-
-
-## -----------------------------------------------------------------------------
-## Deployment Agent settings
-## -----------------------------------------------------------------------------
-# see copyURLToFile() http://commons.apache.org/proper/commons-io/javadocs/api-2.4/index.html
-dpa.connection.timeout = 60000
-dpa.read.timeout = 60000
-
-## -----------------------------------------------------------------------------
-## Cloud Connection Status settings
-## -----------------------------------------------------------------------------
-
-#1. Cloud Connection Status on system log
-#The Cloud Connection Status will be indicated in the log files, and nowere else
-ccs.status.notification.url=ccs:log
-
-#2. Cloud Connection Status on LED
-#The Cloud Connection Status will be indicated by a blinking LED connected to the system GPIOs
-#The URL should indicate the GPIO logic index of the GPIO Pin used for the LED
-#ccs.status.notification.url=ccs:led:16
-
-#3. Cloud Connection Status disabled
-#Disables the Cloud Connection Status service
-#ccs.status.notification.url=ccs:none
diff --git a/kura/distrib/src/main/resources/raspberry-pi-arm64/kura_install.sh b/kura/distrib/src/main/resources/raspberry-pi-arm64/kura_install.sh
deleted file mode 100644
index c20044a020f..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-arm64/kura_install.sh
+++ /dev/null
@@ -1,208 +0,0 @@
-#!/bin/sh
-#
-# Copyright (c) 2022, 2023 Eurotech and/or its affiliates and others
-#
-# This program and the accompanying materials are made
-# available under the terms of the Eclipse Public License 2.0
-# which is available at https://www.eclipse.org/legal/epl-2.0/
-#
-# SPDX-License-Identifier: EPL-2.0
-#
-# Contributors:
-# Eurotech
-#
-
-INSTALL_DIR=/opt/eclipse
-
-#create known kura install location
-ln -sf ${INSTALL_DIR}/kura_* ${INSTALL_DIR}/kura
-
-#set up Kura init
-sed "s|INSTALL_DIR|${INSTALL_DIR}|" ${INSTALL_DIR}/kura/install/kura.service > /lib/systemd/system/kura.service
-systemctl daemon-reload
-systemctl enable kura
-chmod +x ${INSTALL_DIR}/kura/bin/*.sh
-
-# setup snapshot_0 recovery folder
-if [ ! -d ${INSTALL_DIR}/kura/.data ]; then
- mkdir ${INSTALL_DIR}/kura/.data
-fi
-
-mkdir -p ${INSTALL_DIR}/kura/data
-
-# setup /etc/sysconfig folder for iptables configuration file
-if [ ! -d /etc/sysconfig ]; then
- mkdir /etc/sysconfig
-fi
-
-#set up users and grant permissions to them
-cp ${INSTALL_DIR}/kura/install/manage_kura_users.sh ${INSTALL_DIR}/kura/.data/manage_kura_users.sh
-chmod 700 ${INSTALL_DIR}/kura/.data/manage_kura_users.sh
-${INSTALL_DIR}/kura/.data/manage_kura_users.sh -i
-
-systemctl stop apparmor
-systemctl disable apparmor
-
-#set up default networking file
-cp ${INSTALL_DIR}/kura/install/network.interfaces /etc/network/interfaces
-cp ${INSTALL_DIR}/kura/install/network.interfaces ${INSTALL_DIR}/kura/.data/interfaces
-
-#set up network helper scripts
-cp ${INSTALL_DIR}/kura/install/ifup-local.raspbian /etc/network/if-up.d/ifup-local
-cp ${INSTALL_DIR}/kura/install/ifdown-local /etc/network/if-down.d/ifdown-local
-chmod +x /etc/network/if-up.d/ifup-local
-chmod +x /etc/network/if-down.d/ifdown-local
-
-#set up default firewall configuration
-cp ${INSTALL_DIR}/kura/install/iptables.init ${INSTALL_DIR}/kura/.data/iptables
-chmod 644 ${INSTALL_DIR}/kura/.data/iptables
-cp ${INSTALL_DIR}/kura/.data/iptables /etc/sysconfig/iptables
-cp ${INSTALL_DIR}/kura/install/firewall.init ${INSTALL_DIR}/kura/bin/firewall
-chmod 755 ${INSTALL_DIR}/kura/bin/firewall
-cp ${INSTALL_DIR}/kura/install/firewall.service /lib/systemd/system/firewall.service
-chmod 644 /lib/systemd/system/firewall.service
-sed -i "s|/bin/sh KURA_DIR|/bin/bash ${INSTALL_DIR}/kura|" /lib/systemd/system/firewall.service
-systemctl daemon-reload
-systemctl enable firewall
-
-#copy snapshot_0.xml
-cp ${INSTALL_DIR}/kura/user/snapshots/snapshot_0.xml ${INSTALL_DIR}/kura/.data/snapshot_0.xml
-
-#disable NTP service
-if command -v timedatectl > /dev/null ;
- then
- timedatectl set-ntp false
-fi
-
-#disable asking NTP servers to the DHCP server
-if [ -f /etc/dhcp/dhclient.conf ]; then
- echo "Disabling ntp-servers in /etc/dhcp/dhclient.conf"
- sed -i "s/\(, \?ntp-servers\)/; #\1/g" /etc/dhcp/dhclient.conf
-fi
-
-if [ -f /etc/dhclient.conf ]; then
- echo "Disabling ntp-servers in /etc/dhclient.conf"
- sed -i "s/\(, \?ntp-servers\)/; #\1/g" /etc/dhclient.conf
-fi
-
-# Prevent time sync services from starting
-systemctl stop systemd-timesyncd
-systemctl disable systemd-timesyncd
-# Prevent time sync with chrony from starting.
-systemctl stop chrony
-systemctl disable chrony
-
-#set up networking configuration
-mac_addr=$(head -1 /sys/class/net/eth0/address | tr '[:lower:]' '[:upper:]')
-sed "s/^ssid=kura_gateway.*/ssid=kura_gateway_${mac_addr}/" < ${INSTALL_DIR}/kura/install/hostapd.conf > /etc/hostapd-wlan0.conf
-cp /etc/hostapd-wlan0.conf ${INSTALL_DIR}/kura/.data/hostapd-wlan0.conf
-
-cp ${INSTALL_DIR}/kura/install/dhcpd-eth0.conf /etc/dhcpd-eth0.conf
-cp ${INSTALL_DIR}/kura/install/dhcpd-eth0.conf ${INSTALL_DIR}/kura/.data/dhcpd-eth0.conf
-
-cp ${INSTALL_DIR}/kura/install/dhcpd-wlan0.conf /etc/dhcpd-wlan0.conf
-cp ${INSTALL_DIR}/kura/install/dhcpd-wlan0.conf ${INSTALL_DIR}/kura/.data/dhcpd-wlan0.conf
-
-#set up bind/named
-mkdir -p /var/named
-chown -R bind /var/named
-cp ${INSTALL_DIR}/kura/install/named.ca /var/named/
-cp ${INSTALL_DIR}/kura/install/named.rfc1912.zones /etc/
-cp ${INSTALL_DIR}/kura/install/usr.sbin.named /etc/apparmor.d/
-if [ ! -f "/etc/bind/rndc.key" ] ; then
- rndc-confgen -r /dev/urandom -a
-fi
-chown bind:bind /etc/bind/rndc.key
-chmod 600 /etc/bind/rndc.key
-
-#set up dhclient hooks
-cp ${INSTALL_DIR}/kura/install/kura-dhclient-enter-hook /etc/dhcp/dhclient-enter-hooks.d/zz-kura-dhclient-enter-hook
-cp ${INSTALL_DIR}/kura/install/kura-dhclient-enter-route-hook /etc/dhcp/dhclient-enter-hooks.d/yy-kura-dhclient-enter-hook
-
-#set up logrotate - no need to restart as it is a cronjob
-cp ${INSTALL_DIR}/kura/install/kura.logrotate /etc/logrotate-kura.conf
-
-if [ ! -f /etc/cron.d/logrotate-kura ]; then
- test -d /etc/cron.d || mkdir -p /etc/cron.d
- touch /etc/cron.d/logrotate-kura
- echo "*/5 * * * * root /usr/sbin/logrotate --state /var/log/logrotate-kura.status /etc/logrotate-kura.conf" >> /etc/cron.d/logrotate-kura
-fi
-
-#set up systemd-tmpfiles
-cp ${INSTALL_DIR}/kura/install/kura-tmpfiles.conf /etc/tmpfiles.d/kura.conf
-
-# disable dhcpcd service - kura is the network manager
-systemctl stop dhcpcd
-systemctl disable dhcpcd
-
-# disable isc-dhcp-server service - kura is the network manager
-systemctl stop isc-dhcp-server
-systemctl disable isc-dhcp-server
-
-#disable isc-dhcp-server6.service
-systemctl stop isc-dhcp-server6.service
-systemctl disable isc-dhcp-server6.service
-
-# disable NetworkManager.service - kura is the network manager
-systemctl stop NetworkManager.service
-systemctl disable NetworkManager.service
-
-#disable netplan
-systemctl disable systemd-networkd.socket
-systemctl disable systemd-networkd
-systemctl disable networkd-dispatcher
-systemctl disable systemd-networkd-wait-online
-systemctl mask systemd-networkd.socket
-systemctl mask systemd-networkd
-systemctl mask networkd-dispatcher
-systemctl mask systemd-networkd-wait-online
-
-#disable DNS-related services - kura is the network manager
-systemctl stop systemd-resolved.service
-systemctl disable systemd-resolved.service
-systemctl stop resolvconf.service
-systemctl disable resolvconf.service
-
-#disable ModemManager
-systemctl stop ModemManager
-systemctl disable ModemManager
-
-#disable systemd-hostnamed
-systemctl stop systemd-hostnamed
-systemctl disable systemd-hostnamed
-
-#disable wpa_supplicant
-systemctl stop wpa_supplicant
-systemctl disable wpa_supplicant
-
-#assigning possible .conf files ownership to kurad
-PATTERN="/etc/dhcpd*.conf* /etc/resolv.conf* /etc/wpa_supplicant*.conf* /etc/hostapd*.conf*"
-for FILE in $(ls $PATTERN 2>/dev/null)
-do
- chown kurad:kurad $FILE
-done
-
-# set up kura files permissions
-chmod 700 ${INSTALL_DIR}/kura/bin/*.sh
-chown -R kurad:kurad /opt/eclipse
-chmod -R go-rwx /opt/eclipse
-chmod a+rx /opt/eclipse
-find /opt/eclipse/kura -type d -exec chmod u+x "{}" \;
-
-# execute patch_sysctl.sh from installer install folder
-chmod 700 ${INSTALL_DIR}/kura/install/patch_sysctl.sh
-${INSTALL_DIR}/kura/install/patch_sysctl.sh ${INSTALL_DIR}/kura/install/sysctl.kura.conf /etc/sysctl.conf
-
-if ! [ -d /sys/class/net ]
-then
- sysctl -p || true
-else
- sysctl -w net.ipv6.conf.all.disable_ipv6=1
- sysctl -w net.ipv6.conf.default.disable_ipv6=1
- for INTERFACE in $(ls /sys/class/net)
- do
- sysctl -w net.ipv6.conf.${INTERFACE}.disable_ipv6=1
- done
-fi
-
-keytool -genkey -alias localhost -keyalg RSA -keysize 2048 -keystore /opt/eclipse/kura/user/security/httpskeystore.ks -deststoretype pkcs12 -dname "CN=Kura, OU=Kura, O=Eclipse Foundation, L=Ottawa, S=Ontario, C=CA" -ext ku=digitalSignature,nonRepudiation,keyEncipherment,dataEncipherment,keyAgreement,keyCertSign -ext eku=serverAuth,clientAuth,codeSigning,timeStamping -validity 1000 -storepass changeit -keypass changeit
diff --git a/kura/distrib/src/main/resources/raspberry-pi-arm64/kura_upgrade.sh b/kura/distrib/src/main/resources/raspberry-pi-arm64/kura_upgrade.sh
deleted file mode 100644
index e9410c70fcc..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-arm64/kura_upgrade.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-#
-# Copyright (c) 2011, 2020 Eurotech and/or its affiliates and others
-#
-# This program and the accompanying materials are made
-# available under the terms of the Eclipse Public License 2.0
-# which is available at https://www.eclipse.org/legal/epl-2.0/
-#
-# SPDX-License-Identifier: EPL-2.0
-#
-# Contributors:
-# Eurotech
-#
-
-INSTALL_DIR=/opt/eclipse
-
-#create known kura install location
-ln -sf ${INSTALL_DIR}/kura_* ${INSTALL_DIR}/kura
-
-#set up network helper scripts
-cp ${INSTALL_DIR}/kura/install/ifup-local.raspbian /etc/network/if-up.d/ifup-local
-cp ${INSTALL_DIR}/kura/install/ifdown-local /etc/network/if-down.d/ifdown-local
-chmod +x /etc/network/if-up.d/ifup-local
-chmod +x /etc/network/if-down.d/ifdown-local
-
-#set up logrotate - no need to restart as it is a cronjob
-cp ${INSTALL_DIR}/kura/install/logrotate.conf /etc/logrotate.conf
-cp ${INSTALL_DIR}/kura/install/kura.logrotate /etc/logrotate.d/kura
diff --git a/kura/distrib/src/main/resources/raspberry-pi-arm64/log4j.xml b/kura/distrib/src/main/resources/raspberry-pi-arm64/log4j.xml
deleted file mode 100644
index 78995e9a427..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-arm64/log4j.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
- /var/log
- kura
-
-
-
-
-
- %d{ISO8601} [%t] %-5p %c{1.} - %m%n%throwable{full}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/kura/distrib/src/main/resources/raspberry-pi-arm64/network.interfaces b/kura/distrib/src/main/resources/raspberry-pi-arm64/network.interfaces
deleted file mode 100644
index 0a356d88df5..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-arm64/network.interfaces
+++ /dev/null
@@ -1,15 +0,0 @@
-# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
-
-# The loopback interface
-auto lo
-iface lo inet loopback
-
-# Wired or wireless interfaces
-auto eth0
-iface eth0 inet dhcp
-
-auto wlan0
-iface wlan0 inet static
- address 172.16.1.1
- netmask 255.255.255.0
-
diff --git a/kura/distrib/src/main/resources/raspberry-pi-arm64/snapshot_0.xml b/kura/distrib/src/main/resources/raspberry-pi-arm64/snapshot_0.xml
deleted file mode 100644
index 1d05f639ef7..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-arm64/snapshot_0.xml
+++ /dev/null
@@ -1,553 +0,0 @@
-
-
-
-
-
-
- 22,tcp,,eth0,,,,#;22,tcp,,wlan0,,,,#;443,tcp,,eth0,,,,#;443,tcp,,wlan0,,,,#;4443,tcp,,eth0,,,,#;4443,tcp,,wlan0,,,,#;1450,tcp,,eth0,,,,#;1450,tcp,,wlan0,,,,#;5002,tcp,127.0.0.1/32,,,,,#;53,udp,,eth0,,,,#;53,udp,,wlan0,,,,#;67,udp,,eth0,,,,#;67,udp,,wlan0,,,,#;8000,tcp,,eth0,,,,#;8000,tcp,,wlan0,,,,#
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
-
-
- testKEYS
-
-
- INFRA
-
-
- ETHERNET
-
-
- LOOPBACK
-
-
- SECURITY_WPA2
-
-
- CCMP
-
-
- 8
-
-
- netIPv4StatusEnabledWAN
-
-
- true
-
-
- true
-
-
- 24
-
-
- 172.16.1.100
-
-
- MASTER
-
-
- nl80211
-
-
- WIFI
-
-
- nl80211
-
-
- lo,wlan0,eth0
-
-
- NONE
-
-
- 172.16.1.1
-
-
- 7200
-
-
-
-
-
- 172.16.0.100
-
-
- false
-
-
- 7200
-
-
- 127.0.0.1
-
-
- true
-
-
- true
-
-
- 172.16.0.110
-
-
- MASTER
-
-
- RADIO_MODE_80211g
-
-
- 172.16.1.110
-
-
- false
-
-
-
-
-
- netIPv4StatusEnabledLAN
-
-
- 7200
-
-
- kura_gateway_raspberry_pi
-
-
- 24
-
-
- 1
-
-
-
-
-
- 24
-
-
- wepKeyInfraWlan0
-
-
-
-
-
- false
-
-
-
-
-
- 7200
-
-
- netIPv4StatusEnabledLAN
-
-
-
-
-
-
- false
-
-
- org.eclipse.kura.watchdog.WatchdogService
-
-
- 10000
-
-
-
-
-
-
- true
-
-
- 123
-
-
- 3600
-
-
- java-ntp
-
-
- false
-
-
- 10000
-
-
- 0.pool.ntp.org
-
-
- org.eclipse.kura.clock.ClockService
-
-
-
-
-
-
- SA
-
-
- 10
-
-
- jdbc:h2:mem:kuradb
-
-
- org.eclipse.kura.core.db.H2DbService
-
-
- 900
-
-
- org.eclipse.kura.db.H2DbService
-
-
-
-
-
-
- memory
-
-
- true
-
-
- false
-
-
- 4
-
-
- org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport
-
-
- 20
-
-
- org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport
-
-
- mqtt://broker-url:1883/
-
-
- 30
-
-
- account-name
-
-
- $EDC/#account-name/#client-id/MQTT/LWT
-
-
- 0
-
-
- use-ssl-service-config
-
-
- org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory
-
-
- username
-
-
-
-
-
-
- 60
-
-
- 0
-
-
- true
-
-
- 9
-
-
- org.eclipse.kura.data.DataService
-
-
- 10
-
-
- 10
-
-
- org.eclipse.kura.data.DataService
-
-
- 900
-
-
- false
-
-
- SECONDS
-
-
- 1
-
-
- org.eclipse.kura.db.H2DbService
-
-
- (kura.service.pid=org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport)
-
-
- 60
-
-
- false
-
-
- 1
-
-
- org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory
-
-
- true
-
-
- 1000
-
-
-
-
-
-
- 1-3.2
-
-
- false
-
-
- 0
-
-
- 1
-
-
- 115200
-
-
- org.eclipse.kura.position.PositionService
-
-
- 8
-
-
-
-
-
-
- $EDC
-
-
- Raspberry Pi 3/4
-
-
- device-name
-
-
- kura-protobuf
-
-
- false
-
-
- org.eclipse.kura.cloud.CloudService
-
-
- org.eclipse.kura.cloud.CloudService
-
-
- true
-
-
- false
-
-
- true
-
-
- (kura.service.pid=org.eclipse.kura.data.DataService)
-
-
- org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory
-
-
-
-
-
-
- TLSv1.2
-
-
- true
-
-
- (kura.service.pid=SSLKeystore)
-
-
- org.eclipse.kura.ssl.SslManagerService
-
-
- 100
-
-
-
-
-
-
- 443
-
-
- 4443
-
-
- (kura.service.pid=HttpsKeystore)
-
-
- org.eclipse.kura.http.server.manager.HttpService
-
-
- org.eclipse.kura.http.server.manager.HttpService
-
-
-
-
-
-
- [{"name":"kura.user.admin","credentials":{"kura.password":"jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg="},"properties":{"kura.need.password.change":"true"}},{"name":"kura.user.appadmin","credentials":{"kura.password":"3hPckF8Zc+IF3pVineBvck3zJERUl8itosySULE1hpM="},"properties":{"kura.need.password.change":"true"}},{"name":"kura.user.netadmin","credentials":{"kura.password":"3PgDKAMCxgRWBHiT1dEBS97bPqt7xckgdwrADJiDoWg="},"properties":{"kura.need.password.change":"true"}}]
-
-
- [{"name":"kura.permission.kura.admin","basicMembers":["kura.user.admin"]},{"name":"kura.permission.kura.cloud.connection.admin","basicMembers":["kura.user.appadmin","kura.user.netadmin"]},{"name":"kura.permission.kura.device","basicMembers":["kura.user.netadmin"]},{"name":"kura.permission.kura.maintenance"},{"name":"kura.permission.kura.network.admin","basicMembers":["kura.user.netadmin"]},{"name":"kura.permission.kura.packages.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.kura.wires.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.rest.assets"},{"name":"kura.permission.rest.cloudconnection"},{"name":"kura.permission.rest.command"},{"name":"kura.permission.rest.configuration"},{"name":"kura.permission.rest.deploy"},{"name":"kura.permission.rest.identity"},{"name":"kura.permission.rest.inventory"},{"name":"kura.permission.rest.keystores"},{"name":"kura.permission.rest.network.configuration"},{"name":"kura.permission.rest.position"},{"name":"kura.permission.rest.security"},{"name":"kura.permission.rest.system"},{"name":"kura.permission.rest.tamper.detection"},{"name":"kura.permission.rest.wires.admin"}]
-
-
-
-
-
-
- /opt/eclipse/kura/user/security/httpskeystore.ks
-
-
- Y2hhbmdlaXQ=
-
-
- true
-
-
- org.eclipse.kura.core.keystore.FilesystemKeystoreServiceImpl
-
-
- HttpsKeystore
-
-
-
-
-
-
- /opt/eclipse/kura/user/security/cacerts.ks
-
-
- Y2hhbmdlaXQ=
-
-
- true
-
-
- org.eclipse.kura.core.keystore.FilesystemKeystoreServiceImpl
-
-
- SSLKeystore
-
-
-
-
-
-
- /var/log/kura.log
-
-
- org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider
-
-
- filesystem-kura-log
-
-
- org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider-1636726365743-7
-
-
-
-
-
-
- /var/log/kura-audit.log
-
-
- org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider
-
-
- filesystem-kura-audit-log
-
-
- org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider-1636726365743-8
-
-
-
-
-
-
- false
-
-
- false
-
-
- org.eclipse.kura.internal.rest.provider.RestService
-
-
- org.eclipse.kura.internal.rest.provider.RestService
-
-
-
-
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/deb/control/control b/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/deb/control/control
deleted file mode 100644
index 159470cdfbb..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/deb/control/control
+++ /dev/null
@@ -1,17 +0,0 @@
-Package: kura
-Version: [[project.version]]
-Section: misc
-Priority: low
-Depends: hostapd, dos2unix, bind9,
- unzip, ethtool, telnet,
- bluez-hcidump, bluez, chrony,
- ntpdate, pi-bluetooth, rpi.gpio-common,
- openjdk-8-jre-headless | temurin-8-jdk | openjdk-17-jre-headless | temurin-17-jdk,
- cron
-Architecture: all
-Maintainer: support@eurotech.com
-Description: Kura is an inclusive software framework that puts a layer
- between the operating system and the customer application, with industry
- standard interfaces that shorten custom development time, simplified coding
- and software that can be easily ported from one hardware platform
- to another.
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/deb/control/postinst b/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/deb/control/postinst
deleted file mode 100755
index f5afce50484..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/deb/control/postinst
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/bin/bash
-
-INSTALL_DIR=/opt/eclipse
-TIMESTAMP=`date +%Y%m%d%H%M%S`
-LOG=/tmp/kura_install_${TIMESTAMP}.log
-WD_TMP_FILE=/tmp/watchdog
-REFRESH_TIME=5
-TIMEOUT_TIME=300
-
-##############################################
-# UTILITY FUNCTIONS
-##############################################
-# Run postInstall function and start watchdog if needed
-function runPostInstall {
- if [ -f "${WD_TMP_FILE}" ]; then
- WATCHDOG_DEVICE=`cat ${WD_TMP_FILE}`
- echo "Got watchdog ${WATCHDOG_DEVICE}" >> $LOG 2>&1
- postInstall &
- PID=$!
- START=$(date +%s)
-
- while [ -d "/proc/$PID" ]; do
- echo w > ${WATCHDOG_DEVICE}
- DELTA=$(($(date +%s) - $START))
- if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then
- echo "The installation process is not responding. It'll be stopped."
- kill -9 $PID >> /dev/null 2>&1
- fi
- sleep $REFRESH_TIME
- done
- stopWatchdog
- else
- postInstall &
- PID=$!
- START=$(date +%s)
-
- while [ -d "/proc/$PID" ]; do
- DELTA=$(($(date +%s) - $START))
- if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then
- echo "The installation process is not responding. It'll be stopped."
- kill -9 $PID >> /dev/null 2>&1
- fi
- sleep $REFRESH_TIME
- done
- fi
-}
-
-# Deactivate watchdog device if possible
-function stopWatchdog {
- if [ -n "${WATCHDOG_DEVICE}" ]; then
- echo V > ${WATCHDOG_DEVICE}
- fi
-}
-
-# Pre-install script
-function postInstall {
- mkdir -p ${INSTALL_DIR} >> ${LOG} 2>&1
- unzip /tmp/kura_*.zip -d ${INSTALL_DIR} >> ${LOG} 2>&1
-
- #install KURA files
- sh ${INSTALL_DIR}/kura_*/install/kura_install.sh >> ${LOG} 2>&1
-
- #clean up
- rm -rf ${INSTALL_DIR}/kura/install >> ${LOG} 2>&1
- rm /tmp/kura_*.zip >> ${LOG} 2>&1
-
- #move the log file
- mkdir -p ${INSTALL_DIR}/kura/log
- mv ${LOG} ${INSTALL_DIR}/kura/log/
-
- #flush all cached filesystem to disk
- sync
-
- echo ""
- echo "Finished. KURA has been installed to ${INSTALL_DIR}/kura and will start automatically after a reboot"
-}
-##############################################
-# END UTILITY FUNCTIONS
-##############################################
-
-##############################################
-# POST INSTALL SCRIPT
-##############################################
-runPostInstall
-exit 0
-#############################################
-# END POST INSTALL SCRIPT
-##############################################
-
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/deb/control/preinst b/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/deb/control/preinst
deleted file mode 100755
index d571b95db82..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/deb/control/preinst
+++ /dev/null
@@ -1,93 +0,0 @@
-#!/bin/bash
-
-INSTALL_DIR=/opt/eclipse
-WD_TMP_FILE=/tmp/watchdog
-REFRESH_TIME=5
-TIMEOUT_TIME=300
-
-##############################################
-# UTILITY FUNCTIONS
-##############################################
-# Run preInstall function and start watchdog if needed
-function runPreInstall {
- if [ -f "${WD_TMP_FILE}" ]; then
- WATCHDOG_DEVICE=`cat ${WD_TMP_FILE}`
- preInstall &
- PID=$!
- START=$(date +%s)
-
- while [ -d "/proc/$PID" ]; do
- echo w > ${WATCHDOG_DEVICE}
- DELTA=$(($(date +%s) - $START))
- if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then
- echo "The installation process is not responding. It'll be stopped."
- kill -9 $PID >> /dev/null 2>&1
- fi
- sleep $REFRESH_TIME
- done
- stopWatchdog
- else
- preInstall &
- PID=$!
- START=$(date +%s)
-
- while [ -d "/proc/$PID" ]; do
- DELTA=$(($(date +%s) - $START))
- if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then
- echo "The installation process is not responding. It'll be stopped."
- kill -9 $PID >> /dev/null 2>&1
- fi
- sleep $REFRESH_TIME
- done
- fi
-}
-
-# Deactivate watchdog device if possible
-function stopWatchdog {
- if [ -n "${WATCHDOG_DEVICE}" ]; then
- echo V > ${WATCHDOG_DEVICE}
- fi
-}
-
-# Pre-install script
-function preInstall {
- #clean up old installation if present
- rm -fr /opt/eclipse/* >> /tmp/kura_install.log 2>&1
- rm -fr ${INSTALL_DIR}/kura* >> /tmp/kura_install.log 2>&1
- rm -fr /tmp/.kura/ >> /tmp/kura_install.log 2>&1
- rm /tmp/coninfo-* >> /tmp/kura_install.log 2>&1
- rm /var/log/kura.log >> /tmp/kura_install.log 2>&1
- rm kura-*.zip >> /tmp/kura_install.log 2>&1
-
- echo ""
-}
-##############################################
-# END UTILITY FUNCTIONS
-##############################################
-
-##############################################
-# PRE-INSTALL SCRIPT
-##############################################
-PIDS=`pgrep java`
-
-echo ""
-echo "Installing Kura..."
-echo "Installing Kura..." > /tmp/kura_install.log 2>&1
-
-#Kill JVM and monit for installation
-if [ -f "/var/run/kura.pid" ] ; then
- KURA_PID=`cat /var/run/kura.pid`
-
- for pid in "${PIDS[@]}"
- do
- if [ "$KURA_PID" == "$pid" ] ; then
- `kill $pid` >> /tmp/kura_install.log 2>&1
- fi
- done
-fi
-
-runPreInstall
-##############################################
-# END PRE-INSTALL SCRIPT
-##############################################
-
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/deb/control/prerm b/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/deb/control/prerm
deleted file mode 100644
index ab4407f054d..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/deb/control/prerm
+++ /dev/null
@@ -1,111 +0,0 @@
-#!/bin/bash
-
-INSTALL_DIR=/opt/eclipse
-WD_TMP_FILE=/tmp/watchdog
-REFRESH_TIME=5
-TIMEOUT_TIME=300
-
-##############################################
-# UTILITY FUNCTIONS
-##############################################
-# Run preRemove function and start watchdog if needed
-function runPreRemove {
- if [ -f "${WD_TMP_FILE}" ]; then
- WATCHDOG_DEVICE=`cat ${WD_TMP_FILE}`
- preRemove &
- PID=$!
- START=$(date +%s)
-
- while [ -d "/proc/$PID" ]; do
- echo w > ${WATCHDOG_DEVICE}
- DELTA=$(($(date +%s) - $START))
- if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then
- echo "The installation process is not responding. It'll be stopped."
- kill -9 $PID >> /dev/null 2>&1
- fi
- sleep $REFRESH_TIME
- done
- stopWatchdog
- else
- preRemove &
- PID=$!
- START=$(date +%s)
-
- while [ -d "/proc/$PID" ]; do
- DELTA=$(($(date +%s) - $START))
- if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then
- echo "The installation process is not responding. It'll be stopped."
- kill -9 $PID >> /dev/null 2>&1
- fi
- sleep $REFRESH_TIME
- done
- fi
-}
-
-# Deactivate watchdog device if possible
-function stopWatchdog {
- if [ -n "${WATCHDOG_DEVICE}" ]; then
- echo V > ${WATCHDOG_DEVICE}
- fi
-}
-
-# Pre-remove script
-function preRemove {
- #Remove INIT scripts
- if [ -f /etc/init.d/kura ] ; then
- rm /etc/init.d/kura
- update-rc.d kura remove
- fi
- if [ -f /lib/systemd/system/kura.service ] ; then
- systemctl disable kura
- rm /lib/systemd/system/kura.service
- fi
-
- #Roll-back logrotate setup
- rm -f /var/log/logrotate-kura.status
- rm -f /etc/logrotate-kura.conf
- rm -f /etc/cron.d/logrotate-kura
-
- rm -f /var/log/kura*.log
- rm -f /var/log/kura*.gz
- rm -rf /tmp/.kura
- rm -rf /tmp/kura
-
- #Delete Eclipse directory if present
- if [ -d "${INSTALL_DIR}/kura" ] ; then
- PARENT=`readlink -f ${INSTALL_DIR}/kura`
- rm -rf ${INSTALL_DIR}/kura
- rm -rf $PARENT
- fi
-
- echo ""
- echo "Uninstalling KURA... Done!"
-}
-##############################################
-# END UTILITY FUNCTIONS
-##############################################
-
-##############################################
-# PRE-REMOVE SCRIPT
-##############################################
-PIDS=`pgrep java`
-
-echo ""
-echo "Uninstalling KURA..."
-
-#Kill JVM and monit for installation
-if [ -f "/var/run/kura.pid" ] ; then
- KURA_PID=`cat /var/run/kura.pid`
-
- for pid in "${PIDS[@]}"
- do
- if [ "$KURA_PID" == "$pid" ] ; then
- `kill $pid` >> /tmp/kura_install.log 2>&1
- fi
- done
-fi
-
-runPreRemove
-##############################################
-# END PRE-REMOVE SCRIPT
-##############################################
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/jdk.dio.properties b/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/jdk.dio.properties
deleted file mode 100644
index 4f1b90ac3be..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/jdk.dio.properties
+++ /dev/null
@@ -1,32 +0,0 @@
-#
-# Copyright (c) 2011, 2020 Eurotech and/or its affiliates and others
-#
-# This program and the accompanying materials are made
-# available under the terms of the Eclipse Public License 2.0
-# which is available at https://www.eclipse.org/legal/epl-2.0/
-#
-# SPDX-License-Identifier: EPL-2.0
-#
-# Contributors:
-# Eurotech
-#
-
-5 = deviceType: gpio.GPIOPin, pinNumber:5, name:GPIO05
-6 = deviceType: gpio.GPIOPin, pinNumber:6, name:GPIO06
-12 = deviceType: gpio.GPIOPin, pinNumber:12, name:GPIO12
-13 = deviceType: gpio.GPIOPin, pinNumber:13, name:GPIO13
-16 = deviceType: gpio.GPIOPin, pinNumber:16, name:GPIO16
-17 = deviceType: gpio.GPIOPin, pinNumber:17, name:GPIO_GEN0
-18 = deviceType: gpio.GPIOPin, pinNumber:18, name:GPIO_GEN1
-19 = deviceType: gpio.GPIOPin, pinNumber:19, name:GPIO19
-20 = deviceType: gpio.GPIOPin, pinNumber:20, name:GPIO20
-21 = deviceType: gpio.GPIOPin, pinNumber:21, name:GPIO21
-22 = deviceType: gpio.GPIOPin, pinNumber:22, name:GPIO_GEN3
-23 = deviceType: gpio.GPIOPin, pinNumber:23, name:GPIO_GEN4
-24 = deviceType: gpio.GPIOPin, pinNumber:24, name:GPIO_GEN5
-25 = deviceType: gpio.GPIOPin, pinNumber:25, name:GPIO_GEN6
-26 = deviceType: gpio.GPIOPin, pinNumber:26, name:GPIO26
-27 = deviceType: gpio.GPIOPin, pinNumber:27, name:GPIO_GEN2
-
-gpio.GPIOPin = initValue:0, deviceNumber:0, direction:3, mode:-1, trigger:3
-uart.UART = baudRate:19200, parity:0, dataBits:8, stopBits:1, flowControl:0
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/kura.logrotate b/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/kura.logrotate
deleted file mode 100644
index 3a226a3990a..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/kura.logrotate
+++ /dev/null
@@ -1,20 +0,0 @@
-# Logrotate file for Kura.
-# Kura generated file. Do not modify or overwrite.
-
-/var/log/kura*.log
-{
- missingok
- notifempty
- copytruncate
- compress
- rotate 7
- maxsize 10M
- daily
- dateext
- dateformat -%Y%m%d-%s
- create 0600 root root
- sharedscripts
- postrotate
- reload kura >/dev/null 2>&1 || true
- endscript
-}
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/kura.properties b/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/kura.properties
deleted file mode 100644
index d0b6ee5aa8e..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/kura.properties
+++ /dev/null
@@ -1,102 +0,0 @@
-#
-# Copyright (c) 2011, 2022 Eurotech and/or its affiliates and others
-#
-# This program and the accompanying materials are made
-# available under the terms of the Eclipse Public License 2.0
-# which is available at https://www.eclipse.org/legal/epl-2.0/
-#
-# SPDX-License-Identifier: EPL-2.0
-#
-# Contributors:
-# Eurotech
-#
-
-## -----------------------------------------------------------------------------
-## Kura Properties
-## -----------------------------------------------------------------------------
-kura.name=Eclipse Kura
-kura.version=
-kura.marketplace.compatibility.version=
-kura.company=EUROTECH
-kura.project=Raspberry-Pi-armhf
-kura.platform=Raspberry-Pi-armhf
-kura.device.name=Raspberry-Pi
-kura.model.id=Raspberry-Pi
-kura.model.name=Raspberry-Pi
-kura.partNumber=Raspberry-Pi
-#kura.serialNumber=Raspberry-Pi
-kura.serialNumber.provider=cat /proc/cpuinfo | grep Serial | cut -d ' ' -f 2
-kura.bios.version=N/A
-kura.firmware.version=N/A
-kura.primary.network.interface=eth0
-# kura.mac.address= Fetch from Java
-kura.home={kura.install.dir}/{kura.symlink}
-kura.framework.config={kura.install.dir}/{kura.symlink}/framework
-kura.user.config={kura.install.dir}/{kura.symlink}/user
-kura.plugins={kura.install.dir}/{kura.symlink}/plugins
-kura.packages={kura.install.dir}/{kura.symlink}/packages
-kura.data={kura.install.dir}/{kura.symlink}/data
-kura.tmp=/tmp/.kura
-kura.snapshots={kura.install.dir}/{kura.symlink}/user/snapshots
-kura.style.dir={kura.install.dir}/{kura.symlink}/console/skin
-kura.have.net.admin=false
-kura.net.virtual.devices.config=unmanaged
-kura.log.download.sources=/var/log
-kura.log.download.journal.fields=SYSLOG_IDENTIFIER,PRIORITY,MESSAGE,STACKTRACE
-# os.arch= Fetch from Java
-# os.name= Fetch from Java
-# os.version= Fetch from Java
-os.distribution=Linux
-os.distribution.version=N/A
-# java.version= Fetch from Java
-# java.vendor= Fetch from Java
-# java.vm.name= Fetch from Java
-# java.vm.version= Fetch from Java
-# java.home= Fetch from Java
-# file.separator= Fetch from Java
-kura.command.user=kura
-kura.legacy.bluetooth.beacon.scan=false
-kura.legacy.ppp.logging.enabled=true
-
-
-## -----------------------------------------------------------------------------
-## Remote Configuration Properties
-## -----------------------------------------------------------------------------
-console.device.management.service.ignore=org.eclipse.kura.net.admin.NetworkConfigurationService
-
-
-## -----------------------------------------------------------------------------
-## File upload settings
-## -----------------------------------------------------------------------------
-# default 10240
-file.upload.in.memory.size.threshold=10240
-# -1: unlimited (default)
-file.upload.size.max=-1
-file.command.zip.max.size=100
-file.command.zip.max.number=1024
-
-
-## -----------------------------------------------------------------------------
-## Deployment Agent settings
-## -----------------------------------------------------------------------------
-# see copyURLToFile() http://commons.apache.org/proper/commons-io/javadocs/api-2.4/index.html
-dpa.connection.timeout = 60000
-dpa.read.timeout = 60000
-
-
-## -----------------------------------------------------------------------------
-## Cloud Connection Status settings
-## -----------------------------------------------------------------------------
-
-#1. Cloud Connection Status on system log
-#The Cloud Connection Status will be indicated in the log files, and nowere else
-ccs.status.notification.url=ccs:log
-
-#2. Cloud Connection Status on LED
-#The Cloud Connection Status will be indicated by a blinking LED connected to the system GPIOs
-#The URL should indicate the GPIO logic index of the GPIO Pin used for the LED
-#ccs.status.notification.url=ccs:led:16
-
-#3. Cloud Connection Status disabled
-#Disables the Cloud Connection Status service
-#ccs.status.notification.url=ccs:none
\ No newline at end of file
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/kura_install.sh b/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/kura_install.sh
deleted file mode 100755
index 80ae57ba158..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/kura_install.sh
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/bin/sh
-#
-# Copyright (c) 2011, 2020 Eurotech and/or its affiliates and others
-#
-# This program and the accompanying materials are made
-# available under the terms of the Eclipse Public License 2.0
-# which is available at https://www.eclipse.org/legal/epl-2.0/
-#
-# SPDX-License-Identifier: EPL-2.0
-#
-# Contributors:
-# Eurotech
-#
-
-INSTALL_DIR=/opt/eclipse
-
-#create known kura install location
-ln -sf ${INSTALL_DIR}/kura_* ${INSTALL_DIR}/kura
-
-#set up Kura init
-sed "s|INSTALL_DIR|${INSTALL_DIR}|" ${INSTALL_DIR}/kura/install/kura.service > /lib/systemd/system/kura.service
-systemctl daemon-reload
-systemctl enable kura
-chmod +x ${INSTALL_DIR}/kura/bin/*.sh
-
-mkdir -p ${INSTALL_DIR}/kura/data
-
-# setup snapshot_0 recovery folder
-if [ ! -d ${INSTALL_DIR}/kura/.data ]; then
- mkdir ${INSTALL_DIR}/kura/.data
-fi
-
-#set up users and grant permissions to them
-cp ${INSTALL_DIR}/kura/install/manage_kura_users.sh ${INSTALL_DIR}/kura/.data/manage_kura_users.sh
-chmod 700 ${INSTALL_DIR}/kura/.data/manage_kura_users.sh
-${INSTALL_DIR}/kura/.data/manage_kura_users.sh -i -nn
-
-#copy snapshot_0.xml
-cp ${INSTALL_DIR}/kura/user/snapshots/snapshot_0.xml ${INSTALL_DIR}/kura/.data/snapshot_0.xml
-
-#disable NTP service
-if command -v timedatectl > /dev/null ;
- then
- timedatectl set-ntp false
-fi
-
-# Prevent time sync services from starting
-systemctl stop systemd-timesyncd
-systemctl disable systemd-timesyncd
-# Prevent time sync with chrony from starting.
-systemctl stop chrony
-systemctl disable chrony
-
-#set up logrotate - no need to restart as it is a cronjob
-cp ${INSTALL_DIR}/kura/install/kura.logrotate /etc/logrotate-kura.conf
-
-if [ ! -f /etc/cron.d/logrotate-kura ]; then
- test -d /etc/cron.d || mkdir -p /etc/cron.d
- touch /etc/cron.d/logrotate-kura
- echo "*/5 * * * * root /usr/sbin/logrotate --state /var/log/logrotate-kura.status /etc/logrotate-kura.conf" >> /etc/cron.d/logrotate-kura
-fi
-
-#set up systemd-tmpfiles
-cp ${INSTALL_DIR}/kura/install/kura-tmpfiles.conf /etc/tmpfiles.d/kura.conf
-
-# set up kura files permissions
-chmod 700 ${INSTALL_DIR}/kura/bin/*.sh
-chown -R kurad:kurad /opt/eclipse
-chmod -R go-rwx /opt/eclipse
-chmod a+rx /opt/eclipse
-find /opt/eclipse/kura -type d -exec chmod u+x "{}" \;
-
-keytool -genkey -alias localhost -keyalg RSA -keysize 2048 -keystore /opt/eclipse/kura/user/security/httpskeystore.ks -deststoretype pkcs12 -dname "CN=Kura, OU=Kura, O=Eclipse Foundation, L=Ottawa, S=Ontario, C=CA" -ext ku=digitalSignature,nonRepudiation,keyEncipherment,dataEncipherment,keyAgreement,keyCertSign -ext eku=serverAuth,clientAuth,codeSigning,timeStamping -validity 1000 -storepass changeit -keypass changeit
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/kura_upgrade.sh b/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/kura_upgrade.sh
deleted file mode 100755
index c1b5332a1b3..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/kura_upgrade.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/sh
-#
-# Copyright (c) 2011, 2020 Eurotech and/or its affiliates and others
-#
-# This program and the accompanying materials are made
-# available under the terms of the Eclipse Public License 2.0
-# which is available at https://www.eclipse.org/legal/epl-2.0/
-#
-# SPDX-License-Identifier: EPL-2.0
-#
-# Contributors:
-# Eurotech
-#
-
-INSTALL_DIR=/opt/eurotech
-KURA_SYMLINK=esf
-
-#create known kura install location
-ln -sf ${INSTALL_DIR}/${KURA_SYMLINK}_* ${INSTALL_DIR}/${KURA_SYMLINK}
-
-#set up logrotate - no need to restart as it is a cronjob
-cp ${INSTALL_DIR}/${KURA_SYMLINK}/install/logrotate.conf /etc/logrotate.conf
-cp ${INSTALL_DIR}/${KURA_SYMLINK}/install/kura.logrotate /etc/logrotate.d/kura
\ No newline at end of file
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/log4j.xml b/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/log4j.xml
deleted file mode 100644
index 65cbedda8b5..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/log4j.xml
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-
-
-
- /var/log
- kura
-
-
-
-
-
-
- %d{ISO8601} [%t] %-5p %c{1.} - %m%n%throwable{full}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/snapshot_0.xml b/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/snapshot_0.xml
deleted file mode 100644
index 2f476b3193f..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf-nn/snapshot_0.xml
+++ /dev/null
@@ -1,392 +0,0 @@
-
-
-
-
-
-
- false
-
-
- org.eclipse.kura.watchdog.WatchdogService
-
-
- 10000
-
-
-
-
-
-
- SA
-
-
- 10
-
-
- jdbc:h2:mem:kuradb
-
-
- org.eclipse.kura.core.db.H2DbService
-
-
- 900
-
-
- org.eclipse.kura.db.H2DbService
-
-
-
-
-
-
- true
-
-
- 123
-
-
- 3600
-
-
- java-ntp
-
-
- true
-
-
- 10000
-
-
- 0.pool.ntp.org
-
-
- org.eclipse.kura.clock.ClockService
-
-
-
-
-
-
- memory
-
-
- true
-
-
- false
-
-
- 4
-
-
- org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport
-
-
- 20
-
-
- org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport
-
-
- mqtt://broker-url:1883/
-
-
- 30
-
-
- account-name
-
-
- $EDC/#account-name/#client-id/MQTT/LWT
-
-
- 0
-
-
- use-ssl-service-config
-
-
- org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory
-
-
- username
-
-
-
-
-
-
- 60
-
-
- 0
-
-
- true
-
-
- 9
-
-
- org.eclipse.kura.data.DataService
-
-
- 10
-
-
- 10
-
-
- org.eclipse.kura.data.DataService
-
-
- 900
-
-
- false
-
-
- SECONDS
-
-
- 1
-
-
- org.eclipse.kura.db.H2DbService
-
-
- (kura.service.pid=org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport)
-
-
- 60
-
-
- false
-
-
- 1
-
-
- org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory
-
-
- true
-
-
- 1000
-
-
-
-
-
-
- 1-3.2
-
-
- false
-
-
- 0
-
-
- 1
-
-
- 115200
-
-
- org.eclipse.kura.position.PositionService
-
-
- 8
-
-
-
-
-
-
- $EDC
-
-
- Raspberry Pi 2
-
-
- device-name
-
-
- kura-protobuf
-
-
- false
-
-
- org.eclipse.kura.cloud.CloudService
-
-
- org.eclipse.kura.cloud.CloudService
-
-
- true
-
-
- false
-
-
- true
-
-
- (kura.service.pid=org.eclipse.kura.data.DataService)
-
-
- org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory
-
-
-
-
-
-
- TLSv1.2
-
-
- true
-
-
- (kura.service.pid=SSLKeystore)
-
-
- org.eclipse.kura.ssl.SslManagerService
-
-
- 100
-
-
-
-
-
-
- 443
-
-
- 4443
-
-
- (kura.service.pid=HttpsKeystore)
-
-
- org.eclipse.kura.http.server.manager.HttpService
-
-
- org.eclipse.kura.http.server.manager.HttpService
-
-
-
-
-
-
- /opt/eclipse/kura/user/security/httpskeystore.ks
-
-
- Y2hhbmdlaXQ=
-
-
- true
-
-
- org.eclipse.kura.core.keystore.FilesystemKeystoreServiceImpl
-
-
- HttpsKeystore
-
-
-
-
-
-
- /opt/eclipse/kura/user/security/cacerts.ks
-
-
- Y2hhbmdlaXQ=
-
-
- true
-
-
- org.eclipse.kura.core.keystore.FilesystemKeystoreServiceImpl
-
-
- SSLKeystore
-
-
-
-
-
-
- [{"name":"kura.user.admin","credentials":{"kura.password":"jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg="},"properties":{"kura.need.password.change":"true"}},{"name":"kura.user.appadmin","credentials":{"kura.password":"3hPckF8Zc+IF3pVineBvck3zJERUl8itosySULE1hpM="},"properties":{"kura.need.password.change":"true"}}]
-
-
- [{"name":"kura.permission.kura.admin","basicMembers":["kura.user.admin"]},{"name":"kura.permission.kura.cloud.connection.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.kura.device"},{"name":"kura.permission.kura.maintenance"},{"name":"kura.permission.kura.packages.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.kura.wires.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.rest.assets"},{"name":"kura.permission.rest.cloudconnection"},{"name":"kura.permission.rest.command"},{"name":"kura.permission.rest.configuration"},{"name":"kura.permission.rest.deploy"},{"name":"kura.permission.rest.identity"},{"name":"kura.permission.rest.inventory"},{"name":"kura.permission.rest.keystores"},{"name":"kura.permission.rest.position"},{"name":"kura.permission.rest.security"},{"name":"kura.permission.rest.system"},{"name":"kura.permission.rest.tamper.detection"},{"name":"kura.permission.rest.wires.admin"}]
-
-
-
-
-
-
- /var/log/kura.log
-
-
- org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider
-
-
- filesystem-kura-log
-
-
- org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider-1636726365743-7
-
-
-
-
-
-
- /var/log/kura-audit.log
-
-
- org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider
-
-
- filesystem-kura-audit-log
-
-
- org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider-1636726365743-8
-
-
-
-
-
-
- false
-
-
- false
-
-
- org.eclipse.kura.internal.rest.provider.RestService
-
-
- org.eclipse.kura.internal.rest.provider.RestService
-
-
-
-
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf/deb/control/control b/kura/distrib/src/main/resources/raspberry-pi-armhf/deb/control/control
deleted file mode 100644
index 0112a4cda7a..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf/deb/control/control
+++ /dev/null
@@ -1,19 +0,0 @@
-Package: kura
-Version: [[project.version]]
-Section: misc
-Priority: low
-Depends: hostapd, isc-dhcp-server, iw,
- dos2unix, bind9, unzip,
- ethtool, telnet, bluez-hcidump,
- bluez, wireless-tools, net-tools,
- iptables, chrony, ntpdate,
- ifupdown, pi-bluetooth, rpi.gpio-common,
- openjdk-8-jre-headless | temurin-8-jdk | openjdk-17-jre-headless | temurin-17-jdk,
- cron
-Architecture: all
-Maintainer: support@eurotech.com
-Description: Kura is an inclusive software framework that puts a layer
- between the operating system and the customer application, with industry
- standard interfaces that shorten custom development time, simplified coding
- and software that can be easily ported from one hardware platform
- to another.
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf/deb/control/postinst b/kura/distrib/src/main/resources/raspberry-pi-armhf/deb/control/postinst
deleted file mode 100755
index f5afce50484..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf/deb/control/postinst
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/bin/bash
-
-INSTALL_DIR=/opt/eclipse
-TIMESTAMP=`date +%Y%m%d%H%M%S`
-LOG=/tmp/kura_install_${TIMESTAMP}.log
-WD_TMP_FILE=/tmp/watchdog
-REFRESH_TIME=5
-TIMEOUT_TIME=300
-
-##############################################
-# UTILITY FUNCTIONS
-##############################################
-# Run postInstall function and start watchdog if needed
-function runPostInstall {
- if [ -f "${WD_TMP_FILE}" ]; then
- WATCHDOG_DEVICE=`cat ${WD_TMP_FILE}`
- echo "Got watchdog ${WATCHDOG_DEVICE}" >> $LOG 2>&1
- postInstall &
- PID=$!
- START=$(date +%s)
-
- while [ -d "/proc/$PID" ]; do
- echo w > ${WATCHDOG_DEVICE}
- DELTA=$(($(date +%s) - $START))
- if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then
- echo "The installation process is not responding. It'll be stopped."
- kill -9 $PID >> /dev/null 2>&1
- fi
- sleep $REFRESH_TIME
- done
- stopWatchdog
- else
- postInstall &
- PID=$!
- START=$(date +%s)
-
- while [ -d "/proc/$PID" ]; do
- DELTA=$(($(date +%s) - $START))
- if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then
- echo "The installation process is not responding. It'll be stopped."
- kill -9 $PID >> /dev/null 2>&1
- fi
- sleep $REFRESH_TIME
- done
- fi
-}
-
-# Deactivate watchdog device if possible
-function stopWatchdog {
- if [ -n "${WATCHDOG_DEVICE}" ]; then
- echo V > ${WATCHDOG_DEVICE}
- fi
-}
-
-# Pre-install script
-function postInstall {
- mkdir -p ${INSTALL_DIR} >> ${LOG} 2>&1
- unzip /tmp/kura_*.zip -d ${INSTALL_DIR} >> ${LOG} 2>&1
-
- #install KURA files
- sh ${INSTALL_DIR}/kura_*/install/kura_install.sh >> ${LOG} 2>&1
-
- #clean up
- rm -rf ${INSTALL_DIR}/kura/install >> ${LOG} 2>&1
- rm /tmp/kura_*.zip >> ${LOG} 2>&1
-
- #move the log file
- mkdir -p ${INSTALL_DIR}/kura/log
- mv ${LOG} ${INSTALL_DIR}/kura/log/
-
- #flush all cached filesystem to disk
- sync
-
- echo ""
- echo "Finished. KURA has been installed to ${INSTALL_DIR}/kura and will start automatically after a reboot"
-}
-##############################################
-# END UTILITY FUNCTIONS
-##############################################
-
-##############################################
-# POST INSTALL SCRIPT
-##############################################
-runPostInstall
-exit 0
-#############################################
-# END POST INSTALL SCRIPT
-##############################################
-
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf/deb/control/preinst b/kura/distrib/src/main/resources/raspberry-pi-armhf/deb/control/preinst
deleted file mode 100755
index b270398de86..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf/deb/control/preinst
+++ /dev/null
@@ -1,102 +0,0 @@
-#!/bin/bash
-
-INSTALL_DIR=/opt/eclipse
-WD_TMP_FILE=/tmp/watchdog
-REFRESH_TIME=5
-TIMEOUT_TIME=300
-
-##############################################
-# UTILITY FUNCTIONS
-##############################################
-# Run preInstall function and start watchdog if needed
-function runPreInstall {
- if [ -f "${WD_TMP_FILE}" ]; then
- WATCHDOG_DEVICE=`cat ${WD_TMP_FILE}`
- preInstall &
- PID=$!
- START=$(date +%s)
-
- while [ -d "/proc/$PID" ]; do
- echo w > ${WATCHDOG_DEVICE}
- DELTA=$(($(date +%s) - $START))
- if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then
- echo "The installation process is not responding. It'll be stopped."
- kill -9 $PID >> /dev/null 2>&1
- fi
- sleep $REFRESH_TIME
- done
- stopWatchdog
- else
- preInstall &
- PID=$!
- START=$(date +%s)
-
- while [ -d "/proc/$PID" ]; do
- DELTA=$(($(date +%s) - $START))
- if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then
- echo "The installation process is not responding. It'll be stopped."
- kill -9 $PID >> /dev/null 2>&1
- fi
- sleep $REFRESH_TIME
- done
- fi
-}
-
-# Deactivate watchdog device if possible
-function stopWatchdog {
- if [ -n "${WATCHDOG_DEVICE}" ]; then
- echo V > ${WATCHDOG_DEVICE}
- fi
-}
-
-# Pre-install script
-function preInstall {
- #clean up old installation if present
- rm -fr /opt/eclipse/kura* >> /tmp/kura_install.log 2>&1
- rm -fr ${INSTALL_DIR}/kura* >> /tmp/kura_install.log 2>&1
- rm -fr /tmp/.kura/ >> /tmp/kura_install.log 2>&1
- rm /etc/init.d/firewall >> /tmp/kura_install.log 2>&1
- rm /etc/dhcpd-*.conf >> /tmp/kura_install.log 2>&1
- rm /etc/wpa_supplicant.conf >> /tmp/kura_install.log 2>&1
- rm /etc/hostapd.conf >> /tmp/kura_install.log 2>&1
- rm /tmp/coninfo-* >> /tmp/kura_install.log 2>&1
- rm /var/log/kura.log >> /tmp/kura_install.log 2>&1
- rm -fr /etc/ppp/chat >> /tmp/kura_install.log 2>&1
- rm -fr /etc/ppp/peers >> /tmp/kura_install.log 2>&1
- rm -fr /etc/ppp/scripts >> /tmp/kura_install.log 2>&1
- rm /etc/ppp/*ap-secrets >> /tmp/kura_install.log 2>&1
- rm -f kura-*.zip >> /tmp/kura_install.log 2>&1
- rm -f kura_*.zip >> /tmp/kura_install.log 2>&1
-
- echo ""
-}
-##############################################
-# END UTILITY FUNCTIONS
-##############################################
-
-##############################################
-# PRE-INSTALL SCRIPT
-##############################################
-PIDS=`pgrep java`
-
-echo ""
-echo "Installing Kura..."
-echo "Installing Kura..." > /tmp/kura_install.log 2>&1
-
-#Kill JVM and monit for installation
-if [ -f "/var/run/kura.pid" ] ; then
- KURA_PID=`cat /var/run/kura.pid`
-
- for pid in "${PIDS[@]}"
- do
- if [ "$KURA_PID" == "$pid" ] ; then
- `kill $pid` >> /tmp/kura_install.log 2>&1
- fi
- done
-fi
-
-runPreInstall
-##############################################
-# END PRE-INSTALL SCRIPT
-##############################################
-
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf/deb/control/prerm b/kura/distrib/src/main/resources/raspberry-pi-armhf/deb/control/prerm
deleted file mode 100644
index 2e8a9471e98..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf/deb/control/prerm
+++ /dev/null
@@ -1,119 +0,0 @@
-#!/bin/bash
-
-INSTALL_DIR=/opt/eclipse
-WD_TMP_FILE=/tmp/watchdog
-REFRESH_TIME=5
-TIMEOUT_TIME=300
-
-##############################################
-# UTILITY FUNCTIONS
-##############################################
-# Run preRemove function and start watchdog if needed
-function runPreRemove {
- if [ -f "${WD_TMP_FILE}" ]; then
- WATCHDOG_DEVICE=`cat ${WD_TMP_FILE}`
- preRemove &
- PID=$!
- START=$(date +%s)
-
- while [ -d "/proc/$PID" ]; do
- echo w > ${WATCHDOG_DEVICE}
- DELTA=$(($(date +%s) - $START))
- if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then
- echo "The installation process is not responding. It'll be stopped."
- kill -9 $PID >> /dev/null 2>&1
- fi
- sleep $REFRESH_TIME
- done
- stopWatchdog
- else
- preRemove &
- PID=$!
- START=$(date +%s)
-
- while [ -d "/proc/$PID" ]; do
- DELTA=$(($(date +%s) - $START))
- if [ "$DELTA" -ge "$TIMEOUT_TIME" ]; then
- echo "The installation process is not responding. It'll be stopped."
- kill -9 $PID >> /dev/null 2>&1
- fi
- sleep $REFRESH_TIME
- done
- fi
-}
-
-# Deactivate watchdog device if possible
-function stopWatchdog {
- if [ -n "${WATCHDOG_DEVICE}" ]; then
- echo V > ${WATCHDOG_DEVICE}
- fi
-}
-
-# Pre-remove script
-function preRemove {
- #Remove INIT scripts
- if [ -f /etc/init.d/kura ] ; then
- rm /etc/init.d/kura
- update-rc.d kura remove
- fi
- if [ -f /lib/systemd/system/kura.service ] ; then
- systemctl disable kura
- rm /lib/systemd/system/kura.service
- fi
- if [ -f /etc/init.d/firewall ] ; then
- rm /etc/init.d/firewall
- update-rc.d firewall remove
- fi
- if [ -f /lib/systemd/system/firewall.service ] ; then
- systemctl disable firewall
- rm /lib/systemd/system/firewall.service
- fi
-
- #Roll-back logrotate setup
- rm -f /var/log/logrotate-kura.status
- rm -f /etc/logrotate-kura.conf
- rm -f /etc/cron.d/logrotate-kura
-
- rm -f /var/log/kura*.log
- rm -f /var/log/kura*.gz
- rm -rf /tmp/.kura
- rm -rf /tmp/kura
-
- if [ -d "${INSTALL_DIR}/kura" ] ; then
- ${INSTALL_DIR}/kura/.data/manage_kura_users.sh -u
- PARENT=`readlink -f ${INSTALL_DIR}/kura`
- rm -rf ${INSTALL_DIR}/kura
- rm -rf $PARENT
- fi
-
- echo ""
- echo "Uninstalling KURA... Done!"
-}
-##############################################
-# END UTILITY FUNCTIONS
-##############################################
-
-##############################################
-# PRE-REMOVE SCRIPT
-##############################################
-PIDS=`pgrep java`
-
-echo ""
-echo "Uninstalling KURA..."
-
-#Kill JVM and monit for installation
-if [ -f "/var/run/kura.pid" ] ; then
- KURA_PID=`cat /var/run/kura.pid`
-
- for pid in "${PIDS[@]}"
- do
- if [ "$KURA_PID" == "$pid" ] ; then
- `kill $pid` >> /tmp/kura_install.log 2>&1
- fi
- done
-fi
-
-runPreRemove
-##############################################
-# END PRE-REMOVE SCRIPT
-##############################################
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf/dhcpd-eth0.conf b/kura/distrib/src/main/resources/raspberry-pi-armhf/dhcpd-eth0.conf
deleted file mode 100644
index 3af2e593189..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf/dhcpd-eth0.conf
+++ /dev/null
@@ -1,15 +0,0 @@
-# enabled? true
-# prefix: 24
-# pass DNS? true
-
-subnet 172.16.0.0 netmask 255.255.255.0 {
- option domain-name-servers 172.16.0.1;
-
- interface eth0;
- option routers 172.16.0.1;
- default-lease-time 7200;
- max-lease-time 7200;
- pool {
- range 172.16.0.100 172.16.0.110;
- }
-}
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf/dhcpd-wlan0.conf b/kura/distrib/src/main/resources/raspberry-pi-armhf/dhcpd-wlan0.conf
deleted file mode 100644
index 919fbf68fb6..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf/dhcpd-wlan0.conf
+++ /dev/null
@@ -1,15 +0,0 @@
-# enabled? true
-# prefix: 24
-# pass DNS? true
-
-subnet 172.16.1.0 netmask 255.255.255.0 {
- option domain-name-servers 172.16.1.1;
-
- interface wlan0;
- option routers 172.16.1.1;
- default-lease-time 7200;
- max-lease-time 7200;
- pool {
- range 172.16.1.100 172.16.1.110;
- }
-}
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf/firewall.init b/kura/distrib/src/main/resources/raspberry-pi-armhf/firewall.init
deleted file mode 100644
index 6e181d7dc0d..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf/firewall.init
+++ /dev/null
@@ -1,111 +0,0 @@
-#!/bin/bash
-# iptables-restore script
-iptables_config_file=/etc/sysconfig/iptables
-ipforward_file=/proc/sys/net/ipv4/ip_forward
-enable_ipforwarding=false;
-
-create_filter_chains() {
- # create custom chains if needed
- custom_filter_chains=(input-kura output-kura forward-kura)
- for custom_chain in ${custom_filter_chains[@]}; do
- chain=(${custom_chain//-/ })
- iptables -C ${chain[0]^^} -j $custom_chain -t filter > /dev/null 2>&1
- if [[ $? -ne 0 ]]; then
- iptables -N $custom_chain -t filter > /dev/null 2>&1
- iptables -I ${chain[0]^^} -t filter -j $custom_chain > /dev/null 2>&1
- fi
- done
- custom_filter_chains=(forward-kura-pf forward-kura-ipf)
- for custom_chain in ${custom_filter_chains[@]}; do
- iptables -C forward-kura -j $custom_chain -t filter > /dev/null 2>&1
- if [[ $? -ne 0 ]]; then
- iptables -N $custom_chain -t filter > /dev/null 2>&1
- iptables -I forward-kura -t filter -j $custom_chain > /dev/null 2>&1
- fi
- done
-}
-
-create_nat_chains() {
- custom_nat_chains=(prerouting-kura postrouting-kura input-kura output-kura)
- for custom_chain in ${custom_nat_chains[@]}; do
- chain=(${custom_chain//-/ }[0])
- iptables -C ${chain[0]^^} -j $custom_chain -t nat > /dev/null 2>&1
- if [[ $? -ne 0 ]]; then
- iptables -N $custom_chain -t nat > /dev/null 2>&1
- iptables -I ${chain[0]^^} -t nat -j $custom_chain > /dev/null 2>&1
- fi
- done
- iptables -C prerouting-kura -j prerouting-kura-pf -t nat > /dev/null 2>&1
- if [[ $? -ne 0 ]]; then
- iptables -N prerouting-kura-pf -t nat > /dev/null 2>&1
- iptables -I prerouting-kura -t nat -j prerouting-kura-pf > /dev/null 2>&1
- fi
- custom_nat_chains=(postrouting-kura-pf postrouting-kura-ipf)
- for custom_chain in ${custom_nat_chains[@]}; do
- iptables -C postrouting-kura -j $custom_chain -t nat > /dev/null 2>&1
- if [[ $? -ne 0 ]]; then
- iptables -N $custom_chain -t nat > /dev/null 2>&1
- iptables -I postrouting-kura -t nat -j $custom_chain > /dev/null 2>&1
- fi
- done
-}
-
-create_mangle_chains() {
- custom_mangle_chains=(prerouting-kura postrouting-kura input-kura output-kura forward-kura)
- for custom_chain in ${custom_mangle_chains[@]}; do
- chain=(${custom_chain//-/ }[0])
- iptables -C ${chain[0]^^} -j $custom_chain -t mangle > /dev/null 2>&1
- if [[ $? -ne 0 ]]; then
- iptables -N $custom_chain -t mangle > /dev/null 2>&1
- iptables -I ${chain[0]^^} -t mangle -j $custom_chain > /dev/null 2>&1
- fi
- done
-}
-
-configure_policies() {
- # configure policies for standard chains
- policy=$(iptables -nL -t filter | grep policy | grep INPUT)
- if [[ "$policy" == *ACCEPT* ]]; then
- iptables -P INPUT DROP
- fi
- policy=$(iptables -nL -t filter | grep policy | grep OUTPUT)
- if [[ "$policy" == *DROP* ]]; then
- iptables -P OUTPUT ACCEPT
- fi
- policy=$(iptables -nL -t filter | grep policy | grep FORWARD)
- if [[ "$policy" == *ACCEPT* ]]; then
- iptables -P FORWARD DROP
- fi
-}
-
-configure_ip_forwarding() {
- # enable ip forwarding if needed
- if [ -f $iptables_config_file ]; then
- while IFS='' read -r line || [[ -n "$line" ]]; do
- if [[ $line =~ "-A forward-kura" ]]; then
- enable_ipforwarding=true
- break
- fi
- done < $iptables_config_file
- fi
- if [ $enable_ipforwarding = true ]; then
- echo "1" > $ipforward_file
- else
- echo "0" > $ipforward_file
- fi
-}
-
-if [ -f $iptables_config_file ]; then
- iptables-restore < $iptables_config_file
-fi
-
-create_filter_chains
-create_nat_chains
-create_mangle_chains
-configure_policies
-configure_ip_forwarding
-
-# source a custom firewall script
-if [ -f /etc/init.d/firewall_cust ]; then
- source /etc/init.d/firewall_cust 2> /dev/null
-fi
\ No newline at end of file
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf/firewall.service b/kura/distrib/src/main/resources/raspberry-pi-armhf/firewall.service
deleted file mode 100644
index d3dec2c4da1..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf/firewall.service
+++ /dev/null
@@ -1,11 +0,0 @@
-[Unit]
-Description=Firewall configuration
-Before=network-pre.target docker.service
-Wants=network-pre.target
-
-[Service]
-Type=oneshot
-ExecStart=/bin/sh KURA_DIR/bin/firewall
-
-[Install]
-WantedBy=multi-user.target
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf/hostapd.conf b/kura/distrib/src/main/resources/raspberry-pi-armhf/hostapd.conf
deleted file mode 100644
index 33f2b7b01e7..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf/hostapd.conf
+++ /dev/null
@@ -1,62 +0,0 @@
-# /etc/hostapd/hostapd.conf
-
-#example: wlan0
-interface=wlan0
-#example: nl80211
-driver=nl80211
-
-# SSID to use. This will be the "name" of the accesspoint
-#example: catalyst
-ssid=kura_gateway
-
-# basic operational settings
-#example: g
-hw_mode=g
-
-wme_enabled=0
-ieee80211n=0
-
-#example: 1
-channel=1
-
-# Logging and debugging settings: more of this in original config file
-logger_syslog=-1
-logger_syslog_level=2
-logger_stdout=-1
-logger_stdout_level=2
-dump_file=/tmp/hostapd.dump
-
-# WPA settings. We'll use stronger WPA2
-# bit0 = WPA
-# bit1 = IEEE 802.11i/RSN (WPA2) (dot11RSNAEnabled)
-wpa=2
-
-# Preshared key of between 8-63 ASCII characters.
-# If you define the key in here, make sure that the file is not readable
-# by anyone but root. Alternatively you can use a separate file for the
-# key; see original hostapd.conf for more information.
-#example TheKeyMyCatalystUSES!1
-wpa_passphrase=testKEYS
-
-# Key management algorithm. In this case, a simple pre-shared key (PSK)
-wpa_key_mgmt=WPA-PSK
-
-# The cipher suite to use. We want to use stronger CCMP cipher.
-wpa_pairwise=CCMP
-
-# Change the broadcasted/multicasted keys after this many seconds.
-wpa_group_rekey=600
-
-# Change the master key after this many seconds. Master key is used as a basis
-# (source) for the encryption keys.
-wpa_gmk_rekey=86400
-
-# Send empty SSID in beacons and ignore probe request frames that do not
-# specify full SSID, i.e., require stations to know SSID.
-# default: disabled (0)
-# 1 = send empty (length=0) SSID in beacon and ignore probe request for
-# broadcast SSID
-# 2 = clear SSID (ASCII 0), but keep the original length (this may be required
-# with some clients that do not support empty SSID) and ignore probe
-# requests for broadcast SSID
-ignore_broadcast_ssid=0
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf/iptables.init b/kura/distrib/src/main/resources/raspberry-pi-armhf/iptables.init
deleted file mode 100644
index 0a22cc74bef..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf/iptables.init
+++ /dev/null
@@ -1,91 +0,0 @@
-*nat
-:PREROUTING ACCEPT [0:0]
-:INPUT ACCEPT [0:0]
-:OUTPUT ACCEPT [0:0]
-:POSTROUTING ACCEPT [0:0]
-:input-kura - [0:0]
-:output-kura - [0:0]
-:postrouting-kura - [0:0]
-:postrouting-kura-pf - [0:0]
-:postrouting-kura-ipf - [0:0]
-:prerouting-kura - [0:0]
-:prerouting-kura-pf - [0:0]
--I PREROUTING -j prerouting-kura
--I prerouting-kura -j prerouting-kura-pf
--I INPUT -j input-kura
--I OUTPUT -j output-kura
--I POSTROUTING -j postrouting-kura
--I postrouting-kura -j postrouting-kura-pf
--I postrouting-kura -j postrouting-kura-ipf
--A prerouting-kura -j RETURN
--A input-kura -j RETURN
--A output-kura -j RETURN
--A postrouting-kura -o eth0 -j MASQUERADE
--A postrouting-kura -j RETURN
--A postrouting-kura-pf -j RETURN
--A postrouting-kura-ipf -j RETURN
--A prerouting-kura-pf -j RETURN
-COMMIT
-*filter
-:INPUT DROP [0:0]
-:FORWARD DROP [0:0]
-:OUTPUT ACCEPT [0:0]
-:input-kura - [0:0]
-:output-kura - [0:0]
-:forward-kura - [0:0]
-:forward-kura-pf - [0:0]
-:forward-kura-ipf - [0:0]
--I INPUT -j input-kura
--I FORWARD -j forward-kura
--I OUTPUT -j output-kura
--I forward-kura -j forward-kura-pf
--I forward-kura -j forward-kura-ipf
--A input-kura -i wlan0 -p tcp -m tcp --dport 8000 -j ACCEPT
--A input-kura -i eth0 -p tcp -m tcp --dport 8000 -j ACCEPT
--A input-kura -i wlan0 -p udp -m udp --dport 67 -j ACCEPT
--A input-kura -i eth0 -p udp -m udp --dport 67 -j ACCEPT
--A input-kura -i wlan0 -p udp -m udp --dport 53 -j ACCEPT
--A input-kura -i eth0 -p udp -m udp --dport 53 -j ACCEPT
--A input-kura -s 127.0.0.1/32 -p tcp -m tcp --dport 5002 -j ACCEPT
--A input-kura -i wlan0 -p tcp -m tcp --dport 1450 -j ACCEPT
--A input-kura -i eth0 -p tcp -m tcp --dport 1450 -j ACCEPT
--A input-kura -i wlan0 -p tcp -m tcp --dport 443 -j ACCEPT
--A input-kura -i eth0 -p tcp -m tcp --dport 443 -j ACCEPT
--A input-kura -i wlan0 -p tcp -m tcp --dport 4443 -j ACCEPT
--A input-kura -i eth0 -p tcp -m tcp --dport 4443 -j ACCEPT
--A input-kura -i wlan0 -p tcp -m tcp --dport 22 -j ACCEPT
--A input-kura -i eth0 -p tcp -m tcp --dport 22 -j ACCEPT
--A input-kura -i lo -j ACCEPT
--A input-kura -m state --state RELATED,ESTABLISHED -j ACCEPT
--A input-kura -p icmp -m icmp --icmp-type 8 -m state --state NEW,RELATED,ESTABLISHED -j ACCEPT
--A input-kura -j RETURN
--A forward-kura -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
--A forward-kura -i wlan0 -o eth0 -j ACCEPT
--A forward-kura -j RETURN
--A output-kura -p icmp -m icmp --icmp-type 0 -m state --state RELATED,ESTABLISHED -j ACCEPT
--A output-kura -j RETURN
--A forward-kura-pf -j RETURN
--A forward-kura-ipf -j RETURN
-COMMIT
-*mangle
-:PREROUTING ACCEPT [0:0]
-:INPUT ACCEPT [0:0]
-:OUTPUT ACCEPT [0:0]
-:FORWARD ACCEPT [0:0]
-:POSTROUTING ACCEPT [0:0]
-:input-kura - [0:0]
-:output-kura - [0:0]
-:forward-kura - [0:0]
-:postrouting-kura - [0:0]
-:prerouting-kura - [0:0]
--I PREROUTING -j prerouting-kura
--I INPUT -j input-kura
--I OUTPUT -j output-kura
--I FORWARD -j forward-kura
--I POSTROUTING -j postrouting-kura
--A prerouting-kura -j RETURN
--A input-kura -j RETURN
--A output-kura -j RETURN
--A forward-kura -j RETURN
--A postrouting-kura -j RETURN
-COMMIT
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf/jdk.dio.properties b/kura/distrib/src/main/resources/raspberry-pi-armhf/jdk.dio.properties
deleted file mode 100644
index 4f1b90ac3be..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf/jdk.dio.properties
+++ /dev/null
@@ -1,32 +0,0 @@
-#
-# Copyright (c) 2011, 2020 Eurotech and/or its affiliates and others
-#
-# This program and the accompanying materials are made
-# available under the terms of the Eclipse Public License 2.0
-# which is available at https://www.eclipse.org/legal/epl-2.0/
-#
-# SPDX-License-Identifier: EPL-2.0
-#
-# Contributors:
-# Eurotech
-#
-
-5 = deviceType: gpio.GPIOPin, pinNumber:5, name:GPIO05
-6 = deviceType: gpio.GPIOPin, pinNumber:6, name:GPIO06
-12 = deviceType: gpio.GPIOPin, pinNumber:12, name:GPIO12
-13 = deviceType: gpio.GPIOPin, pinNumber:13, name:GPIO13
-16 = deviceType: gpio.GPIOPin, pinNumber:16, name:GPIO16
-17 = deviceType: gpio.GPIOPin, pinNumber:17, name:GPIO_GEN0
-18 = deviceType: gpio.GPIOPin, pinNumber:18, name:GPIO_GEN1
-19 = deviceType: gpio.GPIOPin, pinNumber:19, name:GPIO19
-20 = deviceType: gpio.GPIOPin, pinNumber:20, name:GPIO20
-21 = deviceType: gpio.GPIOPin, pinNumber:21, name:GPIO21
-22 = deviceType: gpio.GPIOPin, pinNumber:22, name:GPIO_GEN3
-23 = deviceType: gpio.GPIOPin, pinNumber:23, name:GPIO_GEN4
-24 = deviceType: gpio.GPIOPin, pinNumber:24, name:GPIO_GEN5
-25 = deviceType: gpio.GPIOPin, pinNumber:25, name:GPIO_GEN6
-26 = deviceType: gpio.GPIOPin, pinNumber:26, name:GPIO26
-27 = deviceType: gpio.GPIOPin, pinNumber:27, name:GPIO_GEN2
-
-gpio.GPIOPin = initValue:0, deviceNumber:0, direction:3, mode:-1, trigger:3
-uart.UART = baudRate:19200, parity:0, dataBits:8, stopBits:1, flowControl:0
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf/kura.logrotate b/kura/distrib/src/main/resources/raspberry-pi-armhf/kura.logrotate
deleted file mode 100644
index 3a226a3990a..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf/kura.logrotate
+++ /dev/null
@@ -1,20 +0,0 @@
-# Logrotate file for Kura.
-# Kura generated file. Do not modify or overwrite.
-
-/var/log/kura*.log
-{
- missingok
- notifempty
- copytruncate
- compress
- rotate 7
- maxsize 10M
- daily
- dateext
- dateformat -%Y%m%d-%s
- create 0600 root root
- sharedscripts
- postrotate
- reload kura >/dev/null 2>&1 || true
- endscript
-}
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf/kura.properties b/kura/distrib/src/main/resources/raspberry-pi-armhf/kura.properties
deleted file mode 100644
index 46a82e54d28..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf/kura.properties
+++ /dev/null
@@ -1,100 +0,0 @@
-#
-# Copyright (c) 2011, 2022 Eurotech and/or its affiliates and others
-#
-# This program and the accompanying materials are made
-# available under the terms of the Eclipse Public License 2.0
-# which is available at https://www.eclipse.org/legal/epl-2.0/
-#
-# SPDX-License-Identifier: EPL-2.0
-#
-# Contributors:
-# Eurotech
-#
-
-## -----------------------------------------------------------------------------
-## Kura Properties
-## -----------------------------------------------------------------------------
-kura.name=Eclipse Kura
-kura.version=
-kura.marketplace.compatibility.version=
-kura.company=EUROTECH
-kura.project=Raspberry-Pi-armhf
-kura.platform=Raspberry-Pi-armhf
-kura.device.name=Raspberry-Pi
-kura.model.id=Raspberry-Pi
-kura.model.name=Raspberry-Pi
-kura.partNumber=Raspberry-Pi
-# kura.serialNumber=Raspberry-Pi
-kura.serialNumber.provider=cat /proc/cpuinfo | grep Serial | cut -d ' ' -f 2
-kura.bios.version=N/A
-kura.firmware.version=N/A
-kura.primary.network.interface=eth0
-# kura.mac.address= Fetch from Java
-kura.home={kura.install.dir}/{kura.symlink}
-kura.framework.config={kura.install.dir}/{kura.symlink}/framework
-kura.user.config={kura.install.dir}/{kura.symlink}/user
-kura.plugins={kura.install.dir}/{kura.symlink}/plugins
-kura.packages={kura.install.dir}/{kura.symlink}/packages
-kura.data={kura.install.dir}/{kura.symlink}/data
-kura.tmp=/tmp/.kura
-kura.snapshots={kura.install.dir}/{kura.symlink}/user/snapshots
-kura.style.dir={kura.install.dir}/{kura.symlink}/console/skin
-#kura.have.net.admin=true
-kura.net.virtual.devices.config=unmanaged
-kura.log.download.sources=/var/log
-kura.log.download.journal.fields=SYSLOG_IDENTIFIER,PRIORITY,MESSAGE,STACKTRACE
-# os.arch= Fetch from Java
-# os.name= Fetch from Java
-# os.version= Fetch from Java
-os.distribution=Linux
-os.distribution.version=N/A
-# java.version= Fetch from Java
-# java.vendor= Fetch from Java
-# java.vm.name= Fetch from Java
-# java.vm.version= Fetch from Java
-# java.home= Fetch from Java
-# file.separator= Fetch from Java
-kura.command.user=kura
-kura.legacy.bluetooth.beacon.scan=false
-kura.legacy.ppp.logging.enabled=true
-
-
-## -----------------------------------------------------------------------------
-## Remote Configuration Properties
-## -----------------------------------------------------------------------------
-console.device.management.service.ignore=org.eclipse.kura.net.admin.NetworkConfigurationService,org.eclipse.kura.net.admin.FirewallConfigurationService
-
-## -----------------------------------------------------------------------------
-## File upload settings
-## -----------------------------------------------------------------------------
-# default 10240
-file.upload.in.memory.size.threshold=10240
-# -1: unlimited (default)
-file.upload.size.max=-1
-file.command.zip.max.size=100
-file.command.zip.max.number=1024
-
-
-## -----------------------------------------------------------------------------
-## Deployment Agent settings
-## -----------------------------------------------------------------------------
-# see copyURLToFile() http://commons.apache.org/proper/commons-io/javadocs/api-2.4/index.html
-dpa.connection.timeout = 60000
-dpa.read.timeout = 60000
-
-## -----------------------------------------------------------------------------
-## Cloud Connection Status settings
-## -----------------------------------------------------------------------------
-
-#1. Cloud Connection Status on system log
-#The Cloud Connection Status will be indicated in the log files, and nowere else
-ccs.status.notification.url=ccs:log
-
-#2. Cloud Connection Status on LED
-#The Cloud Connection Status will be indicated by a blinking LED connected to the system GPIOs
-#The URL should indicate the GPIO logic index of the GPIO Pin used for the LED
-#ccs.status.notification.url=ccs:led:16
-
-#3. Cloud Connection Status disabled
-#Disables the Cloud Connection Status service
-#ccs.status.notification.url=ccs:none
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf/kura_install.sh b/kura/distrib/src/main/resources/raspberry-pi-armhf/kura_install.sh
deleted file mode 100755
index 6f9f9d76928..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf/kura_install.sh
+++ /dev/null
@@ -1,208 +0,0 @@
-#!/bin/sh
-#
-# Copyright (c) 2011, 2023 Eurotech and/or its affiliates and others
-#
-# This program and the accompanying materials are made
-# available under the terms of the Eclipse Public License 2.0
-# which is available at https://www.eclipse.org/legal/epl-2.0/
-#
-# SPDX-License-Identifier: EPL-2.0
-#
-# Contributors:
-# Eurotech
-#
-
-INSTALL_DIR=/opt/eclipse
-
-#create known kura install location
-ln -sf ${INSTALL_DIR}/kura_* ${INSTALL_DIR}/kura
-
-#set up Kura init
-sed "s|INSTALL_DIR|${INSTALL_DIR}|" ${INSTALL_DIR}/kura/install/kura.service > /lib/systemd/system/kura.service
-systemctl daemon-reload
-systemctl enable kura
-chmod +x ${INSTALL_DIR}/kura/bin/*.sh
-
-# setup snapshot_0 recovery folder
-if [ ! -d ${INSTALL_DIR}/kura/.data ]; then
- mkdir ${INSTALL_DIR}/kura/.data
-fi
-
-mkdir -p ${INSTALL_DIR}/kura/data
-
-# setup /etc/sysconfig folder for iptables configuration file
-if [ ! -d /etc/sysconfig ]; then
- mkdir /etc/sysconfig
-fi
-
-#set up users and grant permissions to them
-cp ${INSTALL_DIR}/kura/install/manage_kura_users.sh ${INSTALL_DIR}/kura/.data/manage_kura_users.sh
-chmod 700 ${INSTALL_DIR}/kura/.data/manage_kura_users.sh
-${INSTALL_DIR}/kura/.data/manage_kura_users.sh -i
-
-systemctl stop apparmor
-systemctl disable apparmor
-
-#set up default networking file
-cp ${INSTALL_DIR}/kura/install/network.interfaces /etc/network/interfaces
-cp ${INSTALL_DIR}/kura/install/network.interfaces ${INSTALL_DIR}/kura/.data/interfaces
-
-#set up network helper scripts
-cp ${INSTALL_DIR}/kura/install/ifup-local.raspbian /etc/network/if-up.d/ifup-local
-cp ${INSTALL_DIR}/kura/install/ifdown-local /etc/network/if-down.d/ifdown-local
-chmod +x /etc/network/if-up.d/ifup-local
-chmod +x /etc/network/if-down.d/ifdown-local
-
-#set up default firewall configuration
-cp ${INSTALL_DIR}/kura/install/iptables.init ${INSTALL_DIR}/kura/.data/iptables
-chmod 644 ${INSTALL_DIR}/kura/.data/iptables
-cp ${INSTALL_DIR}/kura/.data/iptables /etc/sysconfig/iptables
-cp ${INSTALL_DIR}/kura/install/firewall.init ${INSTALL_DIR}/kura/bin/firewall
-chmod 755 ${INSTALL_DIR}/kura/bin/firewall
-cp ${INSTALL_DIR}/kura/install/firewall.service /lib/systemd/system/firewall.service
-chmod 644 /lib/systemd/system/firewall.service
-sed -i "s|/bin/sh KURA_DIR|/bin/bash ${INSTALL_DIR}/kura|" /lib/systemd/system/firewall.service
-systemctl daemon-reload
-systemctl enable firewall
-
-#copy snapshot_0.xml
-cp ${INSTALL_DIR}/kura/user/snapshots/snapshot_0.xml ${INSTALL_DIR}/kura/.data/snapshot_0.xml
-
-#disable NTP service
-if command -v timedatectl > /dev/null ;
- then
- timedatectl set-ntp false
-fi
-
-#disable asking NTP servers to the DHCP server
-if [ -f /etc/dhcp/dhclient.conf ]; then
- echo "Disabling ntp-servers in /etc/dhcp/dhclient.conf"
- sed -i "s/\(, \?ntp-servers\)/; #\1/g" /etc/dhcp/dhclient.conf
-fi
-
-if [ -f /etc/dhclient.conf ]; then
- echo "Disabling ntp-servers in /etc/dhclient.conf"
- sed -i "s/\(, \?ntp-servers\)/; #\1/g" /etc/dhclient.conf
-fi
-
-# Prevent time sync services from starting
-systemctl stop systemd-timesyncd
-systemctl disable systemd-timesyncd
-# Prevent time sync with chrony from starting.
-systemctl stop chrony
-systemctl disable chrony
-
-#set up networking configuration
-mac_addr=$(head -1 /sys/class/net/eth0/address | tr '[:lower:]' '[:upper:]')
-sed "s/^ssid=kura_gateway.*/ssid=kura_gateway_${mac_addr}/" < ${INSTALL_DIR}/kura/install/hostapd.conf > /etc/hostapd-wlan0.conf
-cp /etc/hostapd-wlan0.conf ${INSTALL_DIR}/kura/.data/hostapd-wlan0.conf
-
-cp ${INSTALL_DIR}/kura/install/dhcpd-eth0.conf /etc/dhcpd-eth0.conf
-cp ${INSTALL_DIR}/kura/install/dhcpd-eth0.conf ${INSTALL_DIR}/kura/.data/dhcpd-eth0.conf
-
-cp ${INSTALL_DIR}/kura/install/dhcpd-wlan0.conf /etc/dhcpd-wlan0.conf
-cp ${INSTALL_DIR}/kura/install/dhcpd-wlan0.conf ${INSTALL_DIR}/kura/.data/dhcpd-wlan0.conf
-
-#set up bind/named
-mkdir -p /var/named
-chown -R bind /var/named
-cp ${INSTALL_DIR}/kura/install/named.ca /var/named/
-cp ${INSTALL_DIR}/kura/install/named.rfc1912.zones /etc/
-cp ${INSTALL_DIR}/kura/install/usr.sbin.named /etc/apparmor.d/
-if [ ! -f "/etc/bind/rndc.key" ] ; then
- rndc-confgen -r /dev/urandom -a
-fi
-chown bind:bind /etc/bind/rndc.key
-chmod 600 /etc/bind/rndc.key
-
-#set up dhclient hooks
-cp ${INSTALL_DIR}/kura/install/kura-dhclient-enter-hook /etc/dhcp/dhclient-enter-hooks.d/zz-kura-dhclient-enter-hook
-cp ${INSTALL_DIR}/kura/install/kura-dhclient-enter-route-hook /etc/dhcp/dhclient-enter-hooks.d/yy-kura-dhclient-enter-hook
-
-#set up logrotate - no need to restart as it is a cronjob
-cp ${INSTALL_DIR}/kura/install/kura.logrotate /etc/logrotate-kura.conf
-
-if [ ! -f /etc/cron.d/logrotate-kura ]; then
- test -d /etc/cron.d || mkdir -p /etc/cron.d
- touch /etc/cron.d/logrotate-kura
- echo "*/5 * * * * root /usr/sbin/logrotate --state /var/log/logrotate-kura.status /etc/logrotate-kura.conf" >> /etc/cron.d/logrotate-kura
-fi
-
-#set up systemd-tmpfiles
-cp ${INSTALL_DIR}/kura/install/kura-tmpfiles.conf /etc/tmpfiles.d/kura.conf
-
-# disable dhcpcd service - kura is the network manager
-systemctl stop dhcpcd
-systemctl disable dhcpcd
-
-# disable isc-dhcp-server service - kura is the network manager
-systemctl stop isc-dhcp-server
-systemctl disable isc-dhcp-server
-
-#disable isc-dhcp-server6.service
-systemctl stop isc-dhcp-server6.service
-systemctl disable isc-dhcp-server6.service
-
-# disable NetworkManager.service - kura is the network manager
-systemctl stop NetworkManager.service
-systemctl disable NetworkManager.service
-
-#disable netplan
-systemctl disable systemd-networkd.socket
-systemctl disable systemd-networkd
-systemctl disable networkd-dispatcher
-systemctl disable systemd-networkd-wait-online
-systemctl mask systemd-networkd.socket
-systemctl mask systemd-networkd
-systemctl mask networkd-dispatcher
-systemctl mask systemd-networkd-wait-online
-
-#disable DNS-related services - kura is the network manager
-systemctl stop systemd-resolved.service
-systemctl disable systemd-resolved.service
-systemctl stop resolvconf.service
-systemctl disable resolvconf.service
-
-#disable ModemManager
-systemctl stop ModemManager
-systemctl disable ModemManager
-
-#disable systemd-hostnamed
-systemctl stop systemd-hostnamed
-systemctl disable systemd-hostnamed
-
-#disable wpa_supplicant
-systemctl stop wpa_supplicant
-systemctl disable wpa_supplicant
-
-#assigning possible .conf files ownership to kurad
-PATTERN="/etc/dhcpd*.conf* /etc/resolv.conf* /etc/wpa_supplicant*.conf* /etc/hostapd*.conf*"
-for FILE in $(ls $PATTERN 2>/dev/null)
-do
- chown kurad:kurad $FILE
-done
-
-# set up kura files permissions
-chmod 700 ${INSTALL_DIR}/kura/bin/*.sh
-chown -R kurad:kurad /opt/eclipse
-chmod -R go-rwx /opt/eclipse
-chmod a+rx /opt/eclipse
-find /opt/eclipse/kura -type d -exec chmod u+x "{}" \;
-
-# execute patch_sysctl.sh from installer install folder
-chmod 700 ${INSTALL_DIR}/kura/install/patch_sysctl.sh
-${INSTALL_DIR}/kura/install/patch_sysctl.sh ${INSTALL_DIR}/kura/install/sysctl.kura.conf /etc/sysctl.conf
-
-if ! [ -d /sys/class/net ]
-then
- sysctl -p || true
-else
- sysctl -w net.ipv6.conf.all.disable_ipv6=1
- sysctl -w net.ipv6.conf.default.disable_ipv6=1
- for INTERFACE in $(ls /sys/class/net)
- do
- sysctl -w net.ipv6.conf.${INTERFACE}.disable_ipv6=1
- done
-fi
-
-keytool -genkey -alias localhost -keyalg RSA -keysize 2048 -keystore /opt/eclipse/kura/user/security/httpskeystore.ks -deststoretype pkcs12 -dname "CN=Kura, OU=Kura, O=Eclipse Foundation, L=Ottawa, S=Ontario, C=CA" -ext ku=digitalSignature,nonRepudiation,keyEncipherment,dataEncipherment,keyAgreement,keyCertSign -ext eku=serverAuth,clientAuth,codeSigning,timeStamping -validity 1000 -storepass changeit -keypass changeit
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf/kura_upgrade.sh b/kura/distrib/src/main/resources/raspberry-pi-armhf/kura_upgrade.sh
deleted file mode 100755
index e9410c70fcc..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf/kura_upgrade.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-#
-# Copyright (c) 2011, 2020 Eurotech and/or its affiliates and others
-#
-# This program and the accompanying materials are made
-# available under the terms of the Eclipse Public License 2.0
-# which is available at https://www.eclipse.org/legal/epl-2.0/
-#
-# SPDX-License-Identifier: EPL-2.0
-#
-# Contributors:
-# Eurotech
-#
-
-INSTALL_DIR=/opt/eclipse
-
-#create known kura install location
-ln -sf ${INSTALL_DIR}/kura_* ${INSTALL_DIR}/kura
-
-#set up network helper scripts
-cp ${INSTALL_DIR}/kura/install/ifup-local.raspbian /etc/network/if-up.d/ifup-local
-cp ${INSTALL_DIR}/kura/install/ifdown-local /etc/network/if-down.d/ifdown-local
-chmod +x /etc/network/if-up.d/ifup-local
-chmod +x /etc/network/if-down.d/ifdown-local
-
-#set up logrotate - no need to restart as it is a cronjob
-cp ${INSTALL_DIR}/kura/install/logrotate.conf /etc/logrotate.conf
-cp ${INSTALL_DIR}/kura/install/kura.logrotate /etc/logrotate.d/kura
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf/log4j.xml b/kura/distrib/src/main/resources/raspberry-pi-armhf/log4j.xml
deleted file mode 100644
index 78995e9a427..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf/log4j.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-
-
-
-
- /var/log
- kura
-
-
-
-
-
- %d{ISO8601} [%t] %-5p %c{1.} - %m%n%throwable{full}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf/network.interfaces b/kura/distrib/src/main/resources/raspberry-pi-armhf/network.interfaces
deleted file mode 100644
index 0a356d88df5..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf/network.interfaces
+++ /dev/null
@@ -1,15 +0,0 @@
-# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
-
-# The loopback interface
-auto lo
-iface lo inet loopback
-
-# Wired or wireless interfaces
-auto eth0
-iface eth0 inet dhcp
-
-auto wlan0
-iface wlan0 inet static
- address 172.16.1.1
- netmask 255.255.255.0
-
diff --git a/kura/distrib/src/main/resources/raspberry-pi-armhf/snapshot_0.xml b/kura/distrib/src/main/resources/raspberry-pi-armhf/snapshot_0.xml
deleted file mode 100644
index 1db5414c30e..00000000000
--- a/kura/distrib/src/main/resources/raspberry-pi-armhf/snapshot_0.xml
+++ /dev/null
@@ -1,559 +0,0 @@
-
-
-
-
-
-
- 22,tcp,,eth0,,,,#;22,tcp,,wlan0,,,,#;443,tcp,,eth0,,,,#;443,tcp,,wlan0,,,,#;4443,tcp,,eth0,,,,#;4443,tcp,,wlan0,,,,#;1450,tcp,,eth0,,,,#;1450,tcp,,wlan0,,,,#;5002,tcp,127.0.0.1/32,,,,,#;53,udp,,eth0,,,,#;53,udp,,wlan0,,,,#;67,udp,,eth0,,,,#;67,udp,,wlan0,,,,#;8000,tcp,,eth0,,,,#;8000,tcp,,wlan0,,,,#
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- false
-
-
- testKEYS
-
-
- INFRA
-
-
- ETHERNET
-
-
- LOOPBACK
-
-
- SECURITY_WPA2
-
-
- CCMP
-
-
- 8
-
-
- netIPv4StatusEnabledWAN
-
-
- false
-
-
- true
-
-
- true
-
-
- 24
-
-
-
-
-
- 172.16.1.100
-
-
- MASTER
-
-
- nl80211
-
-
- WIFI
-
-
- nl80211
-
-
- lo,wlan0,eth0
-
-
- NONE
-
-
- 172.16.1.1
-
-
- 7200
-
-
-
-
-
- 172.16.0.100
-
-
- false
-
-
- 7200
-
-
- 127.0.0.1
-
-
- true
-
-
- true
-
-
- 172.16.0.110
-
-
- MASTER
-
-
- RADIO_MODE_80211g
-
-
- 172.16.1.110
-
-
- false
-
-
-
-
-
- netIPv4StatusEnabledLAN
-
-
- 7200
-
-
- kura_gateway_raspberry_pi
-
-
- 24
-
-
- 1
-
-
-
-
-
- 24
-
-
- wepKeyInfraWlan0
-
-
-
-
-
- false
-
-
-
-
-
- 7200
-
-
- netIPv4StatusEnabledLAN
-
-
-
-
-
-
- false
-
-
- org.eclipse.kura.watchdog.WatchdogService
-
-
- 10000
-
-
-
-
-
-
- true
-
-
- 123
-
-
- 3600
-
-
- java-ntp
-
-
- true
-
-
- 10000
-
-
- 0.pool.ntp.org
-
-
- org.eclipse.kura.clock.ClockService
-
-
-
-
-
-
- SA
-
-
- 10
-
-
- jdbc:h2:mem:kuradb
-
-
- org.eclipse.kura.core.db.H2DbService
-
-
- 900
-
-
- org.eclipse.kura.db.H2DbService
-
-
-
-
-
-
- memory
-
-
- true
-
-
- false
-
-
- 4
-
-
- org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport
-
-
- 20
-
-
- org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport
-
-
- mqtt://broker-url:1883/
-
-
- 30
-
-
- account-name
-
-
- $EDC/#account-name/#client-id/MQTT/LWT
-
-
- 0
-
-
- use-ssl-service-config
-
-
- org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory
-
-
- username
-
-
-
-
-
-
- 60
-
-
- 0
-
-
- true
-
-
- 9
-
-
- org.eclipse.kura.data.DataService
-
-
- 10
-
-
- 10
-
-
- org.eclipse.kura.data.DataService
-
-
- 900
-
-
- false
-
-
- SECONDS
-
-
- 1
-
-
- org.eclipse.kura.db.H2DbService
-
-
- (kura.service.pid=org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport)
-
-
- 60
-
-
- false
-
-
- 1
-
-
- org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory
-
-
- true
-
-
- 1000
-
-
-
-
-
-
- 1-3.2
-
-
- false
-
-
- 0
-
-
- 1
-
-
- 115200
-
-
- org.eclipse.kura.position.PositionService
-
-
- 8
-
-
-
-
-
-
- $EDC
-
-
- Raspberry Pi 2
-
-
- device-name
-
-
- kura-protobuf
-
-
- false
-
-
- org.eclipse.kura.cloud.CloudService
-
-
- org.eclipse.kura.cloud.CloudService
-
-
- true
-
-
- false
-
-
- true
-
-
- (kura.service.pid=org.eclipse.kura.data.DataService)
-
-
- org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory
-
-
-
-
-
-
- TLSv1.2
-
-
- true
-
-
- (kura.service.pid=SSLKeystore)
-
-
- org.eclipse.kura.ssl.SslManagerService
-
-
- 100
-
-
-
-
-
-
- 443
-
-
- 4443
-
-
- (kura.service.pid=HttpsKeystore)
-
-
- org.eclipse.kura.http.server.manager.HttpService
-
-
- org.eclipse.kura.http.server.manager.HttpService
-
-
-
-
-
-
- [{"name":"kura.user.admin","credentials":{"kura.password":"jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg="},"properties":{"kura.need.password.change":"true"}},{"name":"kura.user.appadmin","credentials":{"kura.password":"3hPckF8Zc+IF3pVineBvck3zJERUl8itosySULE1hpM="},"properties":{"kura.need.password.change":"true"}},{"name":"kura.user.netadmin","credentials":{"kura.password":"3PgDKAMCxgRWBHiT1dEBS97bPqt7xckgdwrADJiDoWg="},"properties":{"kura.need.password.change":"true"}}]
-
-
- [{"name":"kura.permission.kura.admin","basicMembers":["kura.user.admin"]},{"name":"kura.permission.kura.cloud.connection.admin","basicMembers":["kura.user.appadmin","kura.user.netadmin"]},{"name":"kura.permission.kura.device","basicMembers":["kura.user.netadmin"]},{"name":"kura.permission.kura.maintenance"},{"name":"kura.permission.kura.network.admin","basicMembers":["kura.user.netadmin"]},{"name":"kura.permission.kura.packages.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.kura.wires.admin","basicMembers":["kura.user.appadmin"]},{"name":"kura.permission.rest.assets"},{"name":"kura.permission.rest.cloudconnection"},{"name":"kura.permission.rest.command"},{"name":"kura.permission.rest.configuration"},{"name":"kura.permission.rest.deploy"},{"name":"kura.permission.rest.identity"},{"name":"kura.permission.rest.inventory"},{"name":"kura.permission.rest.keystores"},{"name":"kura.permission.rest.network.configuration"},{"name":"kura.permission.rest.position"},{"name":"kura.permission.rest.security"},{"name":"kura.permission.rest.system"},{"name":"kura.permission.rest.tamper.detection"},{"name":"kura.permission.rest.wires.admin"}]
-
-
-
-
-
-
- /opt/eclipse/kura/user/security/httpskeystore.ks
-
-
- Y2hhbmdlaXQ=
-
-
- true
-
-
- org.eclipse.kura.core.keystore.FilesystemKeystoreServiceImpl
-
-
- HttpsKeystore
-
-
-
-
-
-
- /opt/eclipse/kura/user/security/cacerts.ks
-
-
- Y2hhbmdlaXQ=
-
-
- true
-
-
- org.eclipse.kura.core.keystore.FilesystemKeystoreServiceImpl
-
-
- SSLKeystore
-
-
-
-
-
-
- /var/log/kura.log
-
-
- org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider
-
-
- filesystem-kura-log
-
-
- org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider-1636726365743-7
-
-
-
-
-
-
- /var/log/kura-audit.log
-
-
- org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider
-
-
- filesystem-kura-audit-log
-
-
- org.eclipse.kura.log.filesystem.provider.FilesystemLogProvider-1636726365743-8
-
-
-
-
-
-
- false
-
-
- false
-
-
- org.eclipse.kura.internal.rest.provider.RestService
-
-
- org.eclipse.kura.internal.rest.provider.RestService
-
-
-
-