busybox: mdev support

This commit is contained in:
Dylan Araps 2020-01-20 09:54:08 +02:00
parent 0592cc42bf
commit 41b37a977c
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
6 changed files with 48 additions and 1 deletions

View File

@ -34,5 +34,9 @@ chmod u+s "$1/usr/bin/busybox-suid"
# Install runit services.
install -Dm755 crond.run "$1/etc/sv/crond/run"
install -Dm755 syslogd.run "$1/etc/sv/syslogd/run"
install -Dm755 mdev.run "$1/etc/sv/mdev/run"
ln -s /run/runit/supervise.crond "$1/etc/sv/crond/supervise"
ln -s /run/runit/supervise.syslogd "$1/etc/sv/syslogd/supervise"
ln -s /run/runit/supervise.mdev "$1/etc/sv/mdev/supervise"
install -Dm644 mdev.conf "$1/etc/mdev.conf"

View File

@ -3,3 +3,5 @@ d0f940a72f648943c1f2211e0e3117387c31d765137d92bd8284a3fb9752a998 busybox-1.31.1
da3ef90a65abcbd112fa98a00799745d88d568cde290e049a5380dfc74de620a .config-suid
814dea14ac612125e97dcc1d619219b2c9dfc14850bf48d858421fb2c98eca12 crond.run
4a5981f4b0d791fe9b84b0b2e01ae905f6565c8245b3cd603e6decf34ddad71a syslogd.run
961f5944c3ed40a9407b42f19fe694adb95fe9684980fb16d1eee6d928c176b5 mdev.run
032bb57fe6d623a976484195621396737c5990de89b39a7e085e0371b9f607de mdev.conf

View File

@ -0,0 +1,37 @@
null root:root 666 @chmod 666 $MDEV
zero root:root 666
full root:root 666
random root:root 444
urandom root:root 444
kmem root:root 640
mem root:root 640
port root:root 640
console root:tty 600 @chmod 600 $MDEV
ptmx root:tty 666
pty.* root:tty 660
usbdev[0-9].[0-9]* root:root 660 !
tty root:tty 666
tty[0-9]* root:tty 660
vcsa*[0-9]* root:tty 660
ttyS[0-9]* root:uucp 660
SUBSYSTEM=input;.* root:input 660
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/
card[0-9] root:video 660 =dri/
agpgart root:root 660 >misc/
psaux root:root 660 >misc/
rtc root:root 664 >misc/
dri/.* root:video 660

View File

@ -0,0 +1,2 @@
#!/bin/sh
exec mdev -d

View File

@ -3,3 +3,5 @@ files/.config
files/.config-suid
files/crond.run
files/syslogd.run
files/mdev.run
files/mdev.conf

View File

@ -1 +1 @@
1.31.1 2
1.31.1 3