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.

63 lines
2.0 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. --- ./doc/debian/1.orig 2003-10-29 18:28:27.000000000 +0000
  26. +++ ./doc/debian/1 2003-11-11 02:43:07.000000000 +0000
  27. @@ -1,10 +1,9 @@
  28. #!/bin/sh
  29. # system one time tasks
  30. -PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
  31. +export PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
  32. -/etc/init.d/rcS
  33. -/etc/init.d/rmnologin
  34. +/etc/rc.d/init.d/system start
  35. touch /etc/runit/stopit
  36. chmod 0 /etc/runit/stopit
  37. --- ./etc/debian/3.orig 2003-11-18 12:47:03.000000000 -0300
  38. +++ ./etc/debian/3 2003-12-07 10:28:44.000000000 -0300
  39. @@ -1,10 +1,10 @@
  40. #!/bin/sh
  41. exec 2>&1
  42. -PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
  43. +export PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
  44. -LAST=0
  45. -test -x /etc/runit/reboot && LAST=6
  46. +export RUNLEVEL=0
  47. +test -x /etc/runit/reboot && export RUNLEVEL=6
  48. echo 'Waiting for getties to stop...'
  49. svwaitdown -xk -t14 /var/service/getty-*
  50. @@ -13,4 +13,4 @@
  51. svwaitdown -xk -t350 /var/service/*
  52. echo 'Shutdown...'
  53. -/etc/init.d/rc $LAST
  54. +/etc/rc.d/init.d/system stop