summaryrefslogtreecommitdiff
path: root/recipes-bsp
diff options
context:
space:
mode:
authorAndrii Pientsov <andrii.pientsov@globallogic.com>2020-05-14 09:32:26 +0300
committerAndrii Pientsov <andrii.pientsov@globallogic.com>2020-05-14 09:32:26 +0300
commit1ea5de013022c7989a2a80aee29120d249acb064 (patch)
tree706b229908cb208e19c82e66d1b75f807954ea44 /recipes-bsp
parent71e2749a06fc065792afbc5f42d25a137e44468e (diff)
downloadmeta-multitech-atmel-1ea5de013022c7989a2a80aee29120d249acb064.tar.gz
meta-multitech-atmel-1ea5de013022c7989a2a80aee29120d249acb064.tar.bz2
meta-multitech-atmel-1ea5de013022c7989a2a80aee29120d249acb064.zip
Remove duplicate radio-reset
Diffstat (limited to 'recipes-bsp')
-rw-r--r--recipes-bsp/multitech/radio-reset/radio-reset.default11
-rw-r--r--recipes-bsp/multitech/radio-reset/radio-reset.init35
-rw-r--r--recipes-bsp/multitech/radio-reset_0.1.bb49
3 files changed, 0 insertions, 95 deletions
diff --git a/recipes-bsp/multitech/radio-reset/radio-reset.default b/recipes-bsp/multitech/radio-reset/radio-reset.default
deleted file mode 100644
index 56b0ebc..0000000
--- a/recipes-bsp/multitech/radio-reset/radio-reset.default
+++ /dev/null
@@ -1,11 +0,0 @@
-# If Enabled, it is possible to reset the radio on boot or shutdown.
-# It is always possible to reset the radio using
-# /etc/init.d/radio-reset reload manually.
-ENABLED="yes"
-
-# set to "yes" to enable radio-reset on boot
-ONSTART="no"
-
-# set to "no" to disable radio-reset on reboot
-ONSTOP="yes"
-
diff --git a/recipes-bsp/multitech/radio-reset/radio-reset.init b/recipes-bsp/multitech/radio-reset/radio-reset.init
deleted file mode 100644
index 1326fee..0000000
--- a/recipes-bsp/multitech/radio-reset/radio-reset.init
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-
-# set default values
-ENABLED="yes"
-ONSTART="no"
-ONSTOP="yes"
-
-if ! [[ -w /sys/devices/platform/mts-io/radio-reset ]] ; then
- exit 0
-fi
-
-# load the values from /etc/default/radio-reset
-[ -r /etc/default/radio-reset ] && source /etc/default/radio-reset
-
-case $1 in
- start)
- if [[ $ENABLED == "yes" ]] && [[ $ONSTART == "yes" ]] ; then
- mts-io-sysfs store radio-reset 0
- echo "Resetting cellular radio"
- fi
- ;;
- stop)
- if [[ $ENABLED == "yes" ]] && [[ $ONSTOP == "yes" ]] ; then
- mts-io-sysfs store radio-reset 0
- echo "Resetting cellular radio"
- fi
- ;;
- reload)
- mts-io-sysfs store radio-reset 0
- ;;
- *)
- echo "Usage: $0 {start|stop|reload}"
- exit 2
- ;;
-esac
diff --git a/recipes-bsp/multitech/radio-reset_0.1.bb b/recipes-bsp/multitech/radio-reset_0.1.bb
deleted file mode 100644
index 65c6e09..0000000
--- a/recipes-bsp/multitech/radio-reset_0.1.bb
+++ /dev/null
@@ -1,49 +0,0 @@
-DESCRIPTION = "Cellular radio reset init scripts"
-HOMEPAGE = "http://www.multitech.net/"
-SECTION = "base"
-PRIORITY = "optional"
-LICENSE = "GPLv2"
-LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
-
-SRC_URI = " \
- file://radio-reset.init \
- file://radio-reset.default \
-"
-
-inherit update-rc.d
-
-INITSCRIPT_NAME = "radio-reset"
-
-# The script starts with runlevel of 40 (right after mts-io) in initlevel S (Single-user mode on boot),
-# and stops with runlevel of 99 in initlevel 6 (reboot)
-INITSCRIPT_PARAMS = "start 40 S . stop 99 6 ."
-
-do_install() {
- install -d ${D}/etc/init.d
- install -m 0755 ${WORKDIR}/radio-reset.init ${D}/etc/init.d/radio-reset
-
- install -d ${D}${sysconfdir}/default
- install -m 0644 ${WORKDIR}/radio-reset.default ${D}${sysconfdir}/default/radio-reset
-}
-
-fakeroot do_install_append_mtr() {
- # enable radio-reset on start for the mtr hardware
- sed -i 's/ONSTART="no"/ONSTART="yes"/g' ${D}${sysconfdir}/default/radio-reset
-
- # disable radio-reset on shutdown for the mtr hardware
- sed -i 's/ONSTOP="yes"/ONSTOP="no"/g' ${D}${sysconfdir}/default/radio-reset
-}
-
-fakeroot do_install_append_mtrv1() {
- # enable radio-reset on start for the mtrv1 hardware
- sed -i 's/ONSTART="no"/ONSTART="yes"/g' ${D}${sysconfdir}/default/radio-reset
-
- # disable radio-reset on shutdown for the mtrv1 hardware
- sed -i 's/ONSTOP="yes"/ONSTOP="no"/g' ${D}${sysconfdir}/default/radio-reset
-}
-
-fakeroot do_install_append_mtcap() {
- # disable radio-reset both on start and on shutdown for the mtcap hardware
- # mtcap issues the radio reset in /etc/init.d/mts-io init script
- sed -i 's/ENABLED="yes"/ENABLED="no"/g' ${D}${sysconfdir}/default/radio-reset
-}