2 Commits

Author SHA1 Message Date
0071bc2ce0 bundle udevd 2021-04-13 23:41:15 +07:00
96a0aefa1d rc.local.start: make sure to run /etc/rc.local only once 2020-09-05 16:27:13 +07:00
3 changed files with 11 additions and 1 deletions

View File

@@ -28,6 +28,8 @@ STAGES = \
RCLOCAL = script/rc.local.start script/rc.shutdown.stop
UDEV = $(wildcard sv/udevd/*)
AGETTY_CONSOLE = $(wildcard sv/agetty-console/*)
AGETTY_CONSOLE_S = supervise.agetty-console
@@ -127,6 +129,9 @@ install-runit:
install -d $(DESTDIR)$(TMPFILESDIR)
install -m755 $(TMPFILES) $(DESTDIR)$(TMPFILESDIR)/runit.conf
install -d $(DESTDIR)$(SVDIR)/udevd
install -Dm755 $(UDEV) $(DESTDIR)$(SVDIR)/udevd
install -d $(DESTDIR)$(SVDIR)/agetty-console
install -Dm755 $(AGETTY_CONSOLE) $(DESTDIR)$(SVDIR)/agetty-console
$(LN) $(RUNDIR)/$(AGETTY_CONSOLE_S) $(DESTDIR)$(SVDIR)/agetty-console/supervise

View File

@@ -10,4 +10,6 @@ EOF
chmod +x @SYSCONFDIR@/rc.local
fi
. @SYSCONFDIR@/rc.local
# Execute rc.local only once.
# If artix-branding-base exists, that one will execute rc.local instead.
[ ! -x @SYSCONFDIR@/local.d/local.start ] && . @SYSCONFDIR@/rc.local

3
sv/udevd/run Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
udevadm control --exit
exec udevd