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.

67 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 - 2004 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. we need to export vars to be read inside init.d/system
  20. currently we simulate sysv's stage 2
  21. Alejandro
  22. --- ./etc/debian/1.orig 2003-11-18 12:47:03.000000000 -0300
  23. +++ ./etc/debian/1 2003-12-07 10:28:44.000000000 -0300
  24. @@ -1,10 +1,16 @@
  25. #!/bin/sh
  26. # system one time tasks
  27. -PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
  28. +{
  29. +export PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
  30. -/etc/init.d/rcS
  31. -/etc/init.d/rmnologin
  32. +/etc/rc.d/init.d/system start
  33. +#/etc/rc.d/init.d/network start
  34. +
  35. +# write ET mark for btee
  36. +echo -ne '\004'
  37. +
  38. +} 2>&1 | /sbin/btee a /var/log/init.msg
  39. touch /etc/runit/stopit
  40. chmod 0 /etc/runit/stopit
  41. --- ./etc/debian/3.orig 2003-11-18 12:47:03.000000000 -0300
  42. +++ ./etc/debian/3 2003-12-07 10:28:44.000000000 -0300
  43. @@ -1,10 +1,10 @@
  44. #!/bin/sh
  45. exec 2>&1
  46. -PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
  47. +export PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
  48. -LAST=0
  49. -test -x /etc/runit/reboot && LAST=6
  50. +export RUNLEVEL=0
  51. +test -x /etc/runit/reboot && export RUNLEVEL=6
  52. echo 'Waiting for getties to stop...'
  53. svwaitdown -xk -t14 /var/service/getty-*
  54. @@ -13,4 +13,4 @@
  55. svwaitdown -xk -t350 /var/service/*
  56. echo 'Shutdown...'
  57. -/etc/init.d/rc $LAST
  58. +/etc/rc.d/init.d/system stop