Skip to content

Commit

Permalink
mdev: minor fixes
Browse files Browse the repository at this point in the history
Support more vtuner devices
Blacklist mmc based on /proc/cmdline when no /dev/root link exists.
  • Loading branch information
athoik committed Dec 23, 2018
1 parent 8f963e7 commit 2bd8f03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions meta-openpli/recipes-core/busybox/busybox/mdev-mount.sh
Expand Up @@ -29,6 +29,10 @@ case "$ACTION" in
# blocked
exit 0
fi
# blacklisted internal mmc when no /dev/root exists
if grep -q "root=/dev/${DEVBASE}" /proc/cmdline ; then
exit 0
fi
# run the result of blkid as a shell command
eval `blkid /dev/${MDEV} | grep ${MDEV} | cut -d ':' -f 2`
if [ -z "$TYPE" ] ; then
Expand Down
3 changes: 1 addition & 2 deletions meta-openpli/recipes-core/busybox/busybox/mdev.conf
Expand Up @@ -47,6 +47,5 @@ lcd0 0:0 660 =dbox/lcd0
oled0 0:0 660 =dbox/oled0
dboxlcd 0:0 660 =dbox/lcd0
pvr 0:0 660 =misc/pvr
vtuner([0-9]) 0:0 660 =misc/

vtuner([0-9])* 0:0 660 =misc/
$MODALIAS=.* 0:0 660 @modprobe "$MODALIAS"

0 comments on commit 2bd8f03

Please sign in to comment.