Sheba, the realm of Tux
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: target/sheba/pkg_util-vserver.conf
  5. # Copyright (C) 2007 - 2008 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 Alejandro Mery
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- SDE-COPYRIGHT-NOTE-END ---
  15. . $confdir/$pkg.conf
  16. sheba_util_vserver_populate()
  17. {
  18. local udevconfdir=$( pkgdesc confdir udev )
  19. local devdir="$root$sysconfdir/vservers/.defaults/dev"
  20. local node=
  21. overlay_apply "$base/target/$target/pkgs/$pkg"
  22. mkdir -p "$devdir"
  23. "$udevconfdir/create_nodes.sh" "$devdir" < $root$docdir/nodes.txt |
  24. while read node; do
  25. add_flist "$node"
  26. done
  27. }
  28. hook_add postmake 5 "sheba_util_vserver_populate"
  29. var_append patchfiles ' ' $base/target/$target/patches/$pkg.patch