Skip to content

Commit ac79c4f

Browse files
author
Rahul Sandhu
committed
dinit-service/udev: new package, add 0
1 parent 2f6f14f commit ac79c4f

3 files changed

Lines changed: 32 additions & 0 deletions

File tree

dinit-service/udev/files/udevd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
type = process
2+
command = /usr/libexec/udevd-wrapper
3+
before = pre-local.target
4+
depends-on = early-devices.target
5+
smooth-recovery = true
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
#
3+
# this helper serves to bring udevd under supervision during late init
4+
5+
/usr/bin/udevadm control --exit > /dev/null 2>&1
6+
7+
exec /usr/lib/systemd/systemd-udevd "$@"

dinit-service/udev/udev-0.ebuild

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Copyright 1999-2024 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
inherit dinit
6+
7+
DESCRIPTION="Dinit service file for udev"
8+
9+
S="${WORKDIR}"
10+
11+
LICENSE="BSD-2"
12+
SLOT="0"
13+
KEYWORDS="~amd64"
14+
15+
src_install() {
16+
dinit_dosrv "${FILESDIR}/udevd"
17+
18+
exeinto /usr/libexec
19+
doexe "${FILESDIR}/udevd.wrapper"
20+
}

0 commit comments

Comments
 (0)