Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
busybox: mdev support
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Jan 20, 2020
1 parent 0592cc4 commit 41b37a9
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 1 deletion.
4 changes: 4 additions & 0 deletions core/busybox/build
Expand Up @@ -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"
2 changes: 2 additions & 0 deletions core/busybox/checksums
Expand Up @@ -3,3 +3,5 @@ d0f940a72f648943c1f2211e0e3117387c31d765137d92bd8284a3fb9752a998 busybox-1.31.1
da3ef90a65abcbd112fa98a00799745d88d568cde290e049a5380dfc74de620a .config-suid
814dea14ac612125e97dcc1d619219b2c9dfc14850bf48d858421fb2c98eca12 crond.run
4a5981f4b0d791fe9b84b0b2e01ae905f6565c8245b3cd603e6decf34ddad71a syslogd.run
961f5944c3ed40a9407b42f19fe694adb95fe9684980fb16d1eee6d928c176b5 mdev.run
032bb57fe6d623a976484195621396737c5990de89b39a7e085e0371b9f607de mdev.conf
37 changes: 37 additions & 0 deletions core/busybox/files/mdev.conf
@@ -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

2 changes: 2 additions & 0 deletions core/busybox/files/mdev.run
@@ -0,0 +1,2 @@
#!/bin/sh
exec mdev -d
2 changes: 2 additions & 0 deletions core/busybox/sources
Expand Up @@ -3,3 +3,5 @@ files/.config
files/.config-suid
files/crond.run
files/syslogd.run
files/mdev.run
files/mdev.conf
2 changes: 1 addition & 1 deletion core/busybox/version
@@ -1 +1 @@
1.31.1 2
1.31.1 3

0 comments on commit 41b37a9

Please sign in to comment.