pcmcia.patch 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. --- pcmcia-cs-3.1.34/etc/config.opts.orig Tue Jul 9 09:36:23 2002
  2. +++ pcmcia-cs-3.1.34/etc/config.opts Tue Jul 9 09:37:47 2002
  3. @@ -5,7 +5,7 @@
  4. # System resources available for PCMCIA devices
  5. -include port 0x100-0x4ff, port 0x800-0x8ff, port 0xc00-0xcff
  6. +include port 0x100-0x4ff, port 0xc00-0xcff
  7. include memory 0xc0000-0xfffff
  8. include memory 0xa0000000-0xa0ffffff, memory 0x60000000-0x60ffffff
  9. diff -urN pcmcia-cs-3.2.3.orig/etc/shared pcmcia-cs-3.2.3/etc/shared
  10. --- pcmcia-cs-3.2.3.orig/etc/shared 2002-08-18 21:21:11.000000000 -0600
  11. +++ pcmcia-cs-3.2.3/etc/shared 2003-02-14 05:05:07.000000000 -0700
  12. @@ -2,6 +2,8 @@
  13. # shared 1.31 2002/08/19 03:21:11 (David Hinds)
  14. #
  15. +umask 022
  16. +
  17. usage ()
  18. {
  19. echo "usage: $0 [action] [device name]"
  20. --- /dev/null 2003-01-21 22:14:35.000000000 -0700
  21. +++ pcmcia-cs-3.2.4/etc/pcmcia 2003-06-09 12:04:02.000000000 -0600
  22. @@ -0,0 +1,6 @@
  23. +# Defaults for pcmcia (sourced by /etc/init.d/S30pcmcia)
  24. +PCMCIA=yes
  25. +PCIC=yenta_socket
  26. +PCIC_OPTS=
  27. +CORE_OPTS=
  28. +CARDMGR_OPTS=
  29. --- pcmcia-cs-3.2.4/etc/rc.pcmcia.orig 2002-08-08 00:43:43.000000000 -0600
  30. +++ pcmcia-cs-3.2.4/etc/rc.pcmcia 2003-06-09 15:17:28.000000000 -0600
  31. @@ -4,6 +4,8 @@
  32. #
  33. # This is designed to work in BSD as well as SysV init setups. See
  34. # the HOWTO for customization instructions.
  35. +# Modified to comply with Debian's standards by Brian Mays
  36. +# <brian@debian.org>.
  37. # Tags for Red Hat init configuration tools
  38. #
  39. @@ -26,9 +28,9 @@
  40. done
  41. # Source PCMCIA configuration, if available
  42. -if [ -f /etc/pcmcia.conf ] ; then
  43. +if [ -f /etc/default/pcmcia ] ; then
  44. # Debian startup option file
  45. - . /etc/pcmcia.conf
  46. + . /etc/default/pcmcia
  47. elif [ -f /etc/sysconfig/pcmcia ] ; then
  48. # Red Hat startup option file
  49. . /etc/sysconfig/pcmcia
  50. @@ -50,9 +52,22 @@
  51. done
  52. if [ "$PCMCIA" -a "$PCMCIA" != "yes" ] ; then exit 0 ; fi
  53. +# Debian modification: Fix PCIC for stand-alone modules.
  54. +# yenta_socket -> i82365 on these systems.
  55. +# Existence of a standalone module implies that it is preferred.
  56. +if [ -d /lib/modules/preferred ] ; then
  57. + PC=/lib/modules/preferred/pcmcia
  58. +else
  59. + PC=/lib/modules/`uname -r`/pcmcia
  60. +fi
  61. +if [ "$PCIC" = yenta_socket -a -e $PC/i82365.o \
  62. + -a ! -L $PC/i82365.o ]; then
  63. + PCIC=i82365
  64. +fi
  65. +
  66. usage()
  67. {
  68. - echo "Usage: $0 {start|stop|status|restart|reload}"
  69. + echo "Usage: $0 {start|stop|status|restart|reload|force-reload}"
  70. }
  71. cleanup()
  72. @@ -84,7 +99,7 @@
  73. SC=/var/lib/pcmcia/scheme
  74. RUN=/var/lib/pcmcia
  75. else
  76. - SC=/var/run/pcmcia-scheme
  77. + SC=/var/lib/misc/pcmcia-scheme
  78. RUN=/var/run
  79. fi
  80. if [ -L $SC -o ! -O $SC ] ; then rm -f $SC ; fi
  81. @@ -154,7 +172,7 @@
  82. ;;
  83. status)
  84. - pid=`/sbin/pidof cardmgr`
  85. + pid=`/bin/pidof cardmgr`
  86. if [ "$pid" != "" ] ; then
  87. echo "cardmgr (pid $pid) is running..."
  88. EXITCODE=0
  89. @@ -164,12 +182,18 @@
  90. fi
  91. ;;
  92. - restart|reload)
  93. + restart)
  94. $0 stop
  95. $0 start
  96. EXITCODE=$?
  97. ;;
  98. + reload|force-reload)
  99. + echo "Reloading $DESC configuration files."
  100. + kill -1 `cat /var/run/cardmgr.pid` 2>/dev/null
  101. + EXITCODE=0
  102. + ;;
  103. +
  104. *)
  105. usage
  106. ;;
  107. @@ -179,4 +203,4 @@
  108. done
  109. # Only exit if we're in our own subshell
  110. -case $0 in *rc.pcmcia) exit $EXITCODE ;; esac
  111. +case $0 in *pcmcia) exit $EXITCODE ;; esac