OpenSDE Packages Database (without history before r20070)
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.

92 lines
3.1 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../runit/rockify.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2003 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- T2-COPYRIGHT-NOTE-END ---
  17. we need to export vars to be read inside init.d/system
  18. currently we simulate sysv's stage 2
  19. Alejandro
  20. --- ./etc/debian/1.orig 2005-08-24 16:14:38.000000000 -0400
  21. +++ ./etc/debian/1 2005-09-24 18:42:18.000000000 -0400
  22. @@ -1,10 +1,17 @@
  23. #!/bin/sh
  24. # system one time tasks
  25. -PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
  26. +{
  27. +export PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
  28. -/etc/init.d/rcS
  29. -/etc/init.d/rmnologin
  30. +for x in /etc/runit/1.d/*; do
  31. + [ -x $x ] && $x start
  32. +done
  33. -touch /etc/runit/stopit
  34. -chmod 0 /etc/runit/stopit
  35. +# write ET mark for btee
  36. +echo -ne '\004'
  37. +
  38. +} 2>&1 | /sbin/btee a /var/log/init.msg
  39. +
  40. +touch /etc/runit/{stopit,reboot}
  41. +chmod 0 /etc/runit/{stopit,reboot}
  42. --- ./etc/debian/3.orig 2006-06-29 07:53:16.000000000 +0000
  43. +++ ./etc/debian/3 2006-07-07 13:09:50.000000000 +0000
  44. @@ -1,14 +1,18 @@
  45. #!/bin/sh
  46. exec 2>&1
  47. -PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
  48. +export PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin
  49. -LAST=0
  50. -test -x /etc/runit/reboot && LAST=6
  51. +export INIT_DOES_REBOOTHALT=1
  52. +export RUNLEVEL=0
  53. +test -x /etc/runit/reboot && export RUNLEVEL=6
  54. echo 'Waiting for services to stop...'
  55. sv -w196 force-stop /var/service/*
  56. sv exit /var/service/*
  57. echo 'Shutdown...'
  58. -/etc/init.d/rc $LAST
  59. +for x in /etc/runit/3.d/*; do
  60. + [ -x $x ] && $x stop
  61. +done
  62. +true
  63. --- ./etc/debian/ctrlaltdel.orig 2005-08-24 16:14:38.000000000 -0400
  64. +++ ./etc/debian/ctrlaltdel 2005-09-14 05:05:04.000000000 -0400
  65. @@ -4,6 +4,6 @@
  66. MSG="System is going down in 14 seconds..."
  67. # echo 'disabled.' ; exit
  68. -touch /etc/runit/stopit
  69. -chmod 100 /etc/runit/stopit && echo "$MSG" | wall
  70. +touch /etc/runit/{stopit,reboot}
  71. +chmod 100 /etc/runit/{stopit,reboot} && echo "$MSG" | wall
  72. /bin/sleep 14
  73. --- ./etc/2.orig 2006-03-12 22:46:12.000000000 +0100
  74. +++ ./etc/2 2006-03-12 22:46:26.000000000 +0100
  75. @@ -1,6 +1,6 @@
  76. #!/bin/sh
  77. -PATH=/command:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
  78. +PATH=/command:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11/bin
  79. exec env - PATH=$PATH \
  80. runsvdir -P /var/service 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'