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.

70 lines
2.1 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/mnemoc/runit/rockify.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2003 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. we need to export vars to be read inside init.d/system
  23. currently we simulate sysv's stage 2
  24. Alejandro
  25. --- ./etc/debian/1.orig 2003-11-18 12:47:03.000000000 -0300
  26. +++ ./etc/debian/1 2003-12-07 10:28:44.000000000 -0300
  27. @@ -1,10 +1,16 @@
  28. #!/bin/sh
  29. # system one time tasks
  30. -PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
  31. +{
  32. +export PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
  33. -/etc/init.d/rcS
  34. -/etc/init.d/rmnologin
  35. +/etc/rc.d/init.d/system start
  36. +#/etc/rc.d/init.d/network start
  37. +
  38. +# write ET mark for btee
  39. +echo -ne '\004'
  40. +
  41. +} 2>&1 | /sbin/btee a /var/log/init.msg
  42. touch /etc/runit/stopit
  43. chmod 0 /etc/runit/stopit
  44. --- ./etc/debian/3.orig 2003-11-18 12:47:03.000000000 -0300
  45. +++ ./etc/debian/3 2003-12-07 10:28:44.000000000 -0300
  46. @@ -1,10 +1,10 @@
  47. #!/bin/sh
  48. exec 2>&1
  49. -PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
  50. +export PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
  51. -LAST=0
  52. -test -x /etc/runit/reboot && LAST=6
  53. +export RUNLEVEL=0
  54. +test -x /etc/runit/reboot && export RUNLEVEL=6
  55. echo 'Waiting for getties to stop...'
  56. svwaitdown -xk -t14 /var/service/getty-*
  57. @@ -13,4 +13,4 @@
  58. svwaitdown -xk -t350 /var/service/*
  59. echo 'Shutdown...'
  60. -/etc/init.d/rc $LAST
  61. +/etc/rc.d/init.d/system stop