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.

92 lines
2.8 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/base/rockplug/rockplug_firmware.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. diff -ruN rockplug-0.0.9/Makefile rockplug-0.0.9-new/Makefile
  20. --- rockplug-0.0.9/Makefile 2004-03-22 07:08:30.000000000 +0100
  21. +++ rockplug-0.0.9-new/Makefile 2004-10-06 09:31:01.178453224 +0200
  22. @@ -1,5 +1,5 @@
  23. PACKAGE = rockplug
  24. -VERSION = 0.0.7
  25. +VERSION = 0.0.9
  26. SCRIPTS = \
  27. etc/rockplug/usb.init \
  28. @@ -19,6 +19,7 @@
  29. etc/rockplug/scsi.init \
  30. etc/rockplug/scsi.plug \
  31. etc/rockplug/ieee1394.plug \
  32. +etc/rockplug/firmware.plug \
  33. sbin/rockplug \
  34. sbin/rockscan
  35. diff -ruN rockplug-0.0.9/etc/rockplug/firmware.plug rockplug-0.0.9-new/etc/rockplug/firmware.plug
  36. --- rockplug-0.0.9/etc/rockplug/firmware.plug 1970-01-01 01:00:00.000000000 +0100
  37. +++ rockplug-0.0.9-new/etc/rockplug/firmware.plug 2004-10-06 09:30:32.561803616 +0200
  38. @@ -0,0 +1,51 @@
  39. +#!/bin/bash
  40. +# Copyright (C) 2003 Juergen "George" Sawinski
  41. +# Rene Rebe
  42. +# All rights reserved.
  43. +# Partially copied from/rewritten based on hotplug.
  44. +# See README file for further explanation and
  45. +# LICENCING TERMS (GPL v2 or later).
  46. +
  47. +. /etc/rockplug/functions
  48. +
  49. +# config
  50. +FIRMWARE_DIR=/usr/lib/rockplug/firmware
  51. +[ -f /etc/conf/firmware ] && . /etc/conf/firmware
  52. +
  53. +# sanity checks
  54. +if [ "$FIRMWARE" = "" -o "$ACTION" = "" -o "$DEVPATH" = ""]; then
  55. + #@FIXME meaningfull message
  56. + mesg "Invalid invocation of $0"
  57. + exit 1
  58. +fi
  59. +
  60. +SYSFS=$(sed -n 's/^.* \([^ ]*\) sysfs .*$/\1/p' /proc/mounts)
  61. +
  62. +# use /proc for 2.4 kernels
  63. +if [ "$SYSFS" = "" ]; then
  64. + SYSFS=/proc
  65. +fi
  66. +
  67. +case $ACTION in
  68. + add)
  69. + mesg "Firmware: Loading $FIRMWARE for $DEVPATH"
  70. + if [ -f $FIRMWARE_DIR/$FIRMWARE ]; then
  71. + echo 1 > $SYSFS/$DEVPATH/loading
  72. + cp $FIRMWARE_DIR/$FIRMWARE $SYSFS/$DEVPATH/data
  73. + echo 0 > $SYSFS/$DEVPATH/loading
  74. + else
  75. + echo -1 > $SYSFS/$DEVPATH/loading
  76. + fi
  77. + ;;
  78. + remove)
  79. + mesg "Firmware: Not removing anything"
  80. + ;;
  81. + *)
  82. + mesg "Firmware: Nothing to do for $ACTION"
  83. + ;;
  84. +esac
  85. +
  86. +# Local variables:
  87. +# mode: shell-script
  88. +# basic-offset: 2
  89. +# End: