busybox: remove busybox-static-nodes initscript
This script was added a long time ago and it never gets used anymore, so remove it from our images. Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
This commit is contained in:
parent
45227325ee
commit
c681701c27
|
|
@ -1,25 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
#===============================================================================
|
|
||||||
#
|
|
||||||
# busybox-static-nodes
|
|
||||||
#
|
|
||||||
# Copyright (C) 2013 by Digi International Inc.
|
|
||||||
# All rights reserved.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or modify it
|
|
||||||
# under the terms of the GNU General Public License version 2 as published by
|
|
||||||
# the Free Software Foundation.
|
|
||||||
#
|
|
||||||
# !Description: make static device nodes from device table
|
|
||||||
#
|
|
||||||
#===============================================================================
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
MAKEDEVS="/sbin/makedevs"
|
|
||||||
DEVICE_TABLE_CFG="/etc/device_table"
|
|
||||||
|
|
||||||
# Create static device nodes via configuration file.
|
|
||||||
if [ -f "${DEVICE_TABLE_CFG}" ]; then
|
|
||||||
${MAKEDEVS} -d "${DEVICE_TABLE_CFG}" / >/dev/null 2>&1
|
|
||||||
fi
|
|
||||||
|
|
@ -10,7 +10,6 @@ SRC_URI += "file://standby \
|
||||||
file://acpid.map \
|
file://acpid.map \
|
||||||
file://pswitch-standby \
|
file://pswitch-standby \
|
||||||
file://pswitch-poweroff \
|
file://pswitch-poweroff \
|
||||||
file://busybox-static-nodes \
|
|
||||||
file://bridgeifupdown \
|
file://bridgeifupdown \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
|
@ -36,13 +35,6 @@ INITSCRIPT_NAME_${PN}-acpid = "busybox-acpid"
|
||||||
# Start busybox-syslog at a very early state
|
# Start busybox-syslog at a very early state
|
||||||
INITSCRIPT_PARAMS_${PN}-syslog = "defaults 02"
|
INITSCRIPT_PARAMS_${PN}-syslog = "defaults 02"
|
||||||
|
|
||||||
# static-nodes package (create static nodes from /etc/device_table)
|
|
||||||
PACKAGES =+ "${PN}-static-nodes"
|
|
||||||
FILES_${PN}-static-nodes = "${sysconfdir}/init.d/busybox-static-nodes"
|
|
||||||
INITSCRIPT_PACKAGES =+ "${PN}-static-nodes"
|
|
||||||
INITSCRIPT_NAME_${PN}-static-nodes = "busybox-static-nodes"
|
|
||||||
INITSCRIPT_PARAMS_${PN}-static-nodes = "start 07 S ."
|
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
if grep "CONFIG_NTPD=y" ${WORKDIR}/defconfig; then
|
if grep "CONFIG_NTPD=y" ${WORKDIR}/defconfig; then
|
||||||
install -m 0755 ${WORKDIR}/busybox-ntpd ${D}${sysconfdir}/init.d/
|
install -m 0755 ${WORKDIR}/busybox-ntpd ${D}${sysconfdir}/init.d/
|
||||||
|
|
@ -62,9 +54,6 @@ do_install_append() {
|
||||||
install -m 0755 ${WORKDIR}/pswitch-standby ${D}${sysconfdir}/acpi/
|
install -m 0755 ${WORKDIR}/pswitch-standby ${D}${sysconfdir}/acpi/
|
||||||
install -m 0755 ${WORKDIR}/pswitch-poweroff ${D}${sysconfdir}/acpi/
|
install -m 0755 ${WORKDIR}/pswitch-poweroff ${D}${sysconfdir}/acpi/
|
||||||
fi
|
fi
|
||||||
if grep "CONFIG_MAKEDEVS=y" ${WORKDIR}/defconfig; then
|
|
||||||
install -m 0755 ${WORKDIR}/busybox-static-nodes ${D}${sysconfdir}/init.d/
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Install bridgeifupdown script
|
# Install bridgeifupdown script
|
||||||
if grep "CONFIG_BRCTL" ${WORKDIR}/defconfig; then
|
if grep "CONFIG_BRCTL" ${WORKDIR}/defconfig; then
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ IMAGE_INSTALL= "\
|
||||||
base-files \
|
base-files \
|
||||||
base-passwd \
|
base-passwd \
|
||||||
busybox \
|
busybox \
|
||||||
busybox-static-nodes \
|
|
||||||
sysvinit \
|
sysvinit \
|
||||||
initscripts \
|
initscripts \
|
||||||
${CORE_IMAGE_EXTRA_INSTALL} \
|
${CORE_IMAGE_EXTRA_INSTALL} \
|
||||||
|
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
#
|
|
||||||
# GPIO device nodes (LED2 and BUTTON2)
|
|
||||||
#
|
|
||||||
/dev/gpio d 755 0 0
|
|
||||||
/dev/gpio/1 c 644 0 0 240 1
|
|
||||||
/dev/gpio/73 c 644 0 0 240 73
|
|
||||||
/dev/gpio/97 c 644 0 0 240 97
|
|
||||||
/dev/gpio/100 c 644 0 0 240 100
|
|
||||||
/dev/gpio/204 c 644 0 0 240 204
|
|
||||||
|
|
@ -2,15 +2,13 @@
|
||||||
|
|
||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/${BP}:"
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${BP}:"
|
||||||
|
|
||||||
SRC_URI += "file://device_table.txt \
|
SRC_URI += "file://devtmpfs.sh"
|
||||||
file://devtmpfs.sh"
|
|
||||||
|
|
||||||
SRC_URI_append_ccimx6ul = " file://caam_jr0_wakeup.sh"
|
SRC_URI_append_ccimx6ul = " file://caam_jr0_wakeup.sh"
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
install -m 755 ${WORKDIR}/devtmpfs.sh ${D}${sysconfdir}/init.d/devtmpfs.sh
|
install -m 755 ${WORKDIR}/devtmpfs.sh ${D}${sysconfdir}/init.d/devtmpfs.sh
|
||||||
update-rc.d -r ${D} devtmpfs.sh start 03 S .
|
update-rc.d -r ${D} devtmpfs.sh start 03 S .
|
||||||
install -m 0755 ${WORKDIR}/device_table.txt ${D}${sysconfdir}/device_table
|
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install_append_ccimx6ul() {
|
do_install_append_ccimx6ul() {
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,6 @@ RDEPENDS_${PN} = "\
|
||||||
base-passwd \
|
base-passwd \
|
||||||
busybox \
|
busybox \
|
||||||
busybox-acpid \
|
busybox-acpid \
|
||||||
busybox-static-nodes \
|
|
||||||
cloudconnector \
|
cloudconnector \
|
||||||
${@bb.utils.contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \
|
${@bb.utils.contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \
|
||||||
${@bb.utils.contains("MACHINE_FEATURES", "rtc", "busybox-hwclock", "", d)} \
|
${@bb.utils.contains("MACHINE_FEATURES", "rtc", "busybox-hwclock", "", d)} \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue