meta-digi-del: add override 'mdev' bootscript
https://jira.digi.com/browse/DEL-159 #resolve Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
parent
df15208a8c
commit
5d946c7cfe
|
|
@ -0,0 +1,51 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#===============================================================================
|
||||||
|
#
|
||||||
|
# mdev
|
||||||
|
#
|
||||||
|
# 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: Device nodes bootscript
|
||||||
|
#
|
||||||
|
#===============================================================================
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ "${1}" != "start" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
MDEV="/sbin/mdev"
|
||||||
|
# MAKEDEVS="/sbin/makedevs"
|
||||||
|
# CONFIG="/etc/makedevs.d/${DEL_PLATFORM}"
|
||||||
|
|
||||||
|
# Register mdev as hotplug to create devices.
|
||||||
|
if [ -f /proc/sys/kernel/hotplug ]; then
|
||||||
|
echo > /dev/mdev.seq
|
||||||
|
echo "${MDEV}" > /proc/sys/kernel/hotplug
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Create all device nodes scanning /sys.
|
||||||
|
${MDEV} -s
|
||||||
|
|
||||||
|
# Create rest device nodes via configuration file.
|
||||||
|
# if [ -f "${CONFIG}" ]; then
|
||||||
|
# [ -z "${quietboot}" ] && echo -n "Creating nodes via configuration file... "
|
||||||
|
# ${MAKEDEVS} -d "${CONFIG}" / >/dev/null 2>&1
|
||||||
|
# [ -z "${quietboot}" ] && echo "done"
|
||||||
|
# fi
|
||||||
|
|
||||||
|
# mount storage devices
|
||||||
|
usbmount
|
||||||
|
mmc-mount
|
||||||
|
|
||||||
|
# fire *add* event for ADC so the nodes are created in case of built-in driver
|
||||||
|
for i in $(echo /sys/bus/platform/drivers/*adc*/uevent); do
|
||||||
|
[ "${i}" = "/sys/bus/platform/drivers/*adc*/uevent" ] && continue
|
||||||
|
echo add > $i
|
||||||
|
done
|
||||||
|
|
@ -6,8 +6,6 @@ DEPENDS += "libdigi"
|
||||||
SRC_URI += "file://0001-del-baudrates.patch \
|
SRC_URI += "file://0001-del-baudrates.patch \
|
||||||
file://0002-del-mdev_regulatory.patch \
|
file://0002-del-mdev_regulatory.patch \
|
||||||
file://0003-del-flash_eraseall.patch \
|
file://0003-del-flash_eraseall.patch \
|
||||||
file://defconfig \
|
|
||||||
file://mdev.conf \
|
|
||||||
file://adc \
|
file://adc \
|
||||||
file://mmc \
|
file://mmc \
|
||||||
file://sd \
|
file://sd \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue