mirror of the now-defunct rocklinux.org
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.

109 lines
3.4 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/hannes/minit/minit.conf
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. minit_pm() {
  23. mkdir -p $root/etc/minit/default
  24. mkdir -p $root/etc/minit/ctrlaltdel
  25. ln -sf /sbin/halt $root/etc/minit/ctrlaltdel/run
  26. echo "-fp" > $root/etc/minit/ctrlaltdel/params
  27. mkdir -p $root/etc/minit/cleanup
  28. cat <<EOT >$root/etc/minit/cleanup/run
  29. #!/bin/sh
  30. cp -f /dev/null /etc/mtab
  31. rm -rf /var/run/*
  32. touch /var/run/utmp
  33. EOT
  34. chmod +x $root/etc/minit/cleanup/run
  35. touch $root/etc/minit/cleanup/sync
  36. echo remount > $root/etc/minit/cleanup/depends
  37. echo cleanup >> $root/etc/minit/default/depends
  38. mkdir -p $root/etc/minit/remount
  39. ln -sf /bin/mount $root/etc/minit/remount/run
  40. cat <<EOT > $root/etc/minit/remount/params
  41. -o
  42. remount,rw
  43. /
  44. EOT
  45. touch $root/etc/minit/remount/sync
  46. mkdir -p $root/etc/minit/mountproc
  47. ln -sf /bin/mount $root/etc/minit/mountproc/run
  48. echo /proc > $root/etc/minit/mountproc/params
  49. touch $root/etc/minit/mountproc/sync
  50. echo mountproc >> $root/etc/minit/default/depends
  51. mkdir -p $root/etc/minit/mountall
  52. ln -sf /bin/mount $root/etc/minit/mountall/run
  53. echo "-a" >> $root/etc/minit/mountall/params
  54. touch $root/etc/minit/mountall/sync
  55. echo mountall >> $root/etc/minit/default/depends
  56. mkdir -p $root/etc/minit/ifconfiglo
  57. ln -sf /sbin/ifconfig $root/etc/minit/ifconfiglo/run
  58. cat <<EOT > $root/etc/minit/ifconfiglo/params
  59. lo
  60. 127.0.0.1
  61. EOT
  62. echo ifconfiglo >> $root/etc/minit/default/depends
  63. mkdir -p $root/etc/minit/hostname
  64. ln -sf /bin/hostname $root/etc/minit/hostname/run
  65. ln -sf /etc/HOSTNAME $root/etc/minit/hostname/params
  66. echo hostname >> $root/etc/minit/default/depends
  67. mkdir -p $root/etc/minit/hwclock
  68. ln -sf /sbin/hwclock $root/etc/minit/hwclock/run
  69. echo "--hctosys" > $root/etc/minit/hwclock/params
  70. mkdir -p $root/etc/minit/kbd
  71. ln -sf /bin/loadkeys $root/etc/minit/kbd/run
  72. echo us > $root/etc/minit/kbd/params
  73. touch $root/etc/minit/kbd/sync
  74. mkdir -p $root/etc/minit/devfsd
  75. ln -sf /sbin/devfsd $root/etc/minit/devfsd/run
  76. echo /dev > $root/etc/minit/devfsd/params
  77. echo devfsd >> $root/etc/minit/default/depends
  78. mkdir -p $root/etc/minit/getty
  79. echo kbd >> $root/etc/minit/getty/depends
  80. echo hwclock >> $root/etc/minit/getty/depends
  81. declare -i i=1
  82. while [ $i -le 6 ];
  83. do
  84. mkdir -p $root/etc/minit/getty/$i
  85. touch $root/etc/minit/getty/$i/respawn
  86. ln -sf /sbin/fgetty $root/etc/minit/getty/$i/run
  87. echo "vc/$i" > $root/etc/minit/getty/$i/params
  88. echo getty/$i >> $root/etc/minit/getty/depends
  89. i=i+1
  90. done
  91. echo getty >> $root/etc/minit/default/depends
  92. }
  93. var_append makeinstopt ' ' "DESTDIR=$root/"
  94. hook_add postmake 5 "minit_pm"