kmod-static-nodes.initd 510 B

1234567891011121314151617181920
  1. #!/usr/bin/openrc-run
  2. # Copyright 1999-2015 Gentoo Foundation
  3. # Distributed under the terms of the GNU General Public License v2
  4. # $Id$
  5. description="Create list of required static device nodes for the current kernel"
  6. depend() {
  7. after dev-mount
  8. before tmpfiles.dev dev
  9. keyword -lxc -systemd-nspawn
  10. }
  11. start() {
  12. ebegin "Creating list of required static device nodes for the current kernel"
  13. checkpath -q -d /run/tmpfiles.d
  14. kmod static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf
  15. eend $?
  16. }