From 40593e3d24146c20cc4bd35e8f1717da67fb7ecb Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Wed, 3 Jun 2020 10:49:24 +0300 Subject: busybox: add new utils --- core/busybox/files/.config | 26 ++++++++++---------- core/busybox/files/mdev.conf | 58 ++++++++++++++++++++++++++++++++++++++++++++ core/busybox/files/mdev.run | 3 +++ 3 files changed, 74 insertions(+), 13 deletions(-) create mode 100644 core/busybox/files/mdev.conf create mode 100644 core/busybox/files/mdev.run (limited to 'core/busybox/files') diff --git a/core/busybox/files/.config b/core/busybox/files/.config index 6089be49..87c7b94f 100644 --- a/core/busybox/files/.config +++ b/core/busybox/files/.config @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit # Busybox version: 1.31.1 -# Wed May 20 11:42:39 2020 +# Mon Jun 1 11:10:36 2020 # CONFIG_HAVE_DOT_CONFIG=y @@ -158,9 +158,9 @@ CONFIG_FEATURE_SEAMLESS_Z=y # CONFIG_BZIP2 is not set CONFIG_BZIP2_SMALL=0 # CONFIG_FEATURE_BZIP2_DECOMPRESS is not set -# CONFIG_CPIO is not set -# CONFIG_FEATURE_CPIO_O is not set -# CONFIG_FEATURE_CPIO_P is not set +CONFIG_CPIO=y +CONFIG_FEATURE_CPIO_O=y +CONFIG_FEATURE_CPIO_P=y # CONFIG_DPKG is not set # CONFIG_DPKG_DEB is not set # CONFIG_GZIP is not set @@ -611,7 +611,7 @@ CONFIG_FEATURE_DMESG_PRETTY=y # CONFIG_FEATURE_OSF_LABEL is not set # CONFIG_FEATURE_GPT_LABEL is not set # CONFIG_FEATURE_FDISK_ADVANCED is not set -# CONFIG_FINDFS is not set +CONFIG_FINDFS=y # CONFIG_FLOCK is not set # CONFIG_FDFLUSH is not set # CONFIG_FREERAMDISK is not set @@ -634,13 +634,13 @@ CONFIG_FEATURE_GETOPT_LONG=y # CONFIG_LOSETUP is not set CONFIG_LSPCI=y CONFIG_LSUSB=y -# CONFIG_MDEV is not set -# CONFIG_FEATURE_MDEV_CONF is not set -# CONFIG_FEATURE_MDEV_RENAME is not set -# CONFIG_FEATURE_MDEV_RENAME_REGEXP is not set -# CONFIG_FEATURE_MDEV_EXEC is not set -# CONFIG_FEATURE_MDEV_LOAD_FIRMWARE is not set -# CONFIG_FEATURE_MDEV_DAEMON is not set +CONFIG_MDEV=y +CONFIG_FEATURE_MDEV_CONF=y +CONFIG_FEATURE_MDEV_RENAME=y +CONFIG_FEATURE_MDEV_RENAME_REGEXP=y +CONFIG_FEATURE_MDEV_EXEC=y +CONFIG_FEATURE_MDEV_LOAD_FIRMWARE=y +CONFIG_FEATURE_MDEV_DAEMON=y # CONFIG_MESG is not set # CONFIG_FEATURE_MESG_ENABLE_ONLY_GROUP is not set # CONFIG_MKE2FS is not set @@ -689,7 +689,7 @@ CONFIG_FEATURE_SWAPON_DISCARD=y CONFIG_FEATURE_SWAPON_PRI=y CONFIG_SWAPOFF=y CONFIG_FEATURE_SWAPONOFF_LABEL=y -# CONFIG_SWITCH_ROOT is not set +CONFIG_SWITCH_ROOT=y # CONFIG_TASKSET is not set # CONFIG_FEATURE_TASKSET_FANCY is not set # CONFIG_UEVENT is not set diff --git a/core/busybox/files/mdev.conf b/core/busybox/files/mdev.conf new file mode 100644 index 00000000..8edbd89c --- /dev/null +++ b/core/busybox/files/mdev.conf @@ -0,0 +1,58 @@ +# +# /etc/mdev.conf +# + +# sample mdev_fat.conf with minor modifications. The original +# can be found on examples/mdev_fat.conf which provides more +# information regarding syntax and usage. +# +# see also the usage output for 'mdev --help' for more information. + +# support module loading on hotplug +$MODALIAS=.* root:root 660 @modprobe "$MODALIAS" + +# general-purpose devices +null root:root 666 @chmod 666 $MDEV +zero root:root 666 +full root:root 666 +random root:root 444 +urandom root:root 444 +hwrandom root:root 444 +grsec root:root 660 + +kmem root:root 640 +mem root:root 640 +port root:root 640 + +# tty devices +console root:tty 600 @chmod 600 $MDEV +ptmx root:tty 666 +pty.* root:tty 660 + +tty root:tty 666 +tty[0-9]* root:tty 660 +vcsa*[0-9]* root:tty 660 +ttyS[0-9]* root:uucp 660 + +# audio devices +adsp root:audio 660 >sound/ +audio root:audio 660 >sound/ +dsp root:audio 660 >sound/ +mixer root:audio 660 >sound/ +sequencer.* root:audio 660 >sound/ +snd/.* root:audio 660 + +# video devices +card[0-9] root:video 660 =dri/ +dri/.* root:video 660 + +# misc stuff +agpgart root:root 660 >misc/ +psaux root:root 660 >misc/ +rtc root:root 664 >misc/ + +# input stuff +event[0-9]+ root:root 640 =input/ +mice root:root 640 =input/ +mouse[0-9] root:root 640 =input/ +ts[0-9] root:root 640 =input/ diff --git a/core/busybox/files/mdev.run b/core/busybox/files/mdev.run new file mode 100644 index 00000000..12b10b5d --- /dev/null +++ b/core/busybox/files/mdev.run @@ -0,0 +1,3 @@ +#!/bin/sh + +exec mdev -df -- cgit v1.2.3