sys_deblob.sh 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. #!/bin/sh
  2. #########################
  3. # Name: sys_deblob.sh
  4. # Main: jadedctrl
  5. # Lisc: ISC
  6. # Desc: Delobbing OBSD kernel
  7. # sources for use in
  8. # LBSD.
  9. #########################
  10. # Usage: sys_deblob.sh $SRC_DIR
  11. . ./libdeblob.sh
  12. PATCH_DIR=/tmp/sys_deblob
  13. if [ -e $PATCH_DIR ]
  14. then
  15. self_destruct_sequence $PATCH_DIR
  16. mkdir $PATCH_DIR
  17. else
  18. mkdir $PATCH_DIR
  19. fi
  20. if test -z $1
  21. then
  22. SRC_DIR=/usr/src/sys
  23. else
  24. SRC_DIR=$1
  25. fi
  26. #arch_list="alpha amd64 armish armv7 hppa i386 landisk loongson luna88k macppc miniroot octeon sgi socppc sparc sparc64 vax zaurus"
  27. arch_list="amd64 i386"
  28. for arch in $arch_list
  29. do
  30. linedel "kue\*" arch/${arch}/conf/GENERIC
  31. linedel "rum\*" arch/${arch}/conf/GENERIC
  32. linedel "zyd\*" arch/${arch}/conf/GENERIC
  33. linedel "uvideo\?" arch/${arch}/conf/GENERIC
  34. linedel "udl\*" arch/${arch}/conf/GENERIC
  35. linedel "udl?" arch/${arch}/conf/GENERIC
  36. linedel "ips\*" arch/${arch}/conf/GENERIC
  37. linedel "siop\*" arch/${arch}/conf/GENERIC
  38. linedel "adw" arch/${arch}/conf/GENERIC
  39. linedel "fxp" arch/${arch}/conf/GENERIC
  40. linedel "myx" arch/${arch}/conf/GENERIC
  41. linedel "bnx" arch/${arch}/conf/GENERIC
  42. linedel "thtc" arch/${arch}/conf/GENERIC
  43. linedel "ral\*" arch/${arch}/conf/GENERIC
  44. linedel "yds" arch/${arch}/conf/GENERIC
  45. linedel "fxp\*" arch/${arch}/conf/RAMDISK
  46. linedel "kue\*" arch/${arch}/conf/RAMDISK_CD
  47. linedel "rum\*" arch/${arch}/conf/RAMDISK_CD
  48. linedel "zyd\*" arch/${arch}/conf/RAMDISK_CD
  49. linedel "ips\*" arch/${arch}/conf/RAMDISK_CD
  50. linedel "siop\*" arch/${arch}/conf/RAMDISK_CD
  51. linedel "adw\*" arch/${arch}/conf/RAMDISK_CD
  52. linedel "fxp\*" arch/${arch}/conf/RAMDISK_CD
  53. linedel "bnx\*" arch/${arch}/conf/RAMDISK_CD
  54. linedel "ral\*" arch/${arch}/conf/RAMDISK_CD
  55. done
  56. filedel "dev/microcode/adw"
  57. filedel dev/microcode/afb
  58. filedel dev/microcode/atmel
  59. filedel dev/microcode/bnx
  60. filedel dev/microcode/bwi
  61. filedel dev/microcode/cirruslogic
  62. filedel dev/microcode/cyclades
  63. filedel dev/microcode/esa
  64. filedel dev/microcode/fxp
  65. filedel dev/microcode/ises
  66. filedel dev/microcode/kue
  67. filedel dev/microcode/myx
  68. filedel dev/microcode/neomagic
  69. filedel dev/microcode/ral
  70. filedel dev/microcode/rum
  71. filedel dev/microcode/siop
  72. filedel dev/microcode/symbol
  73. filedel dev/microcode/tht
  74. filedel dev/microcode/tigon
  75. filedel dev/microcode/tusb3410
  76. filedel dev/microcode/typhoon
  77. filedel dev/microcode/udl
  78. filedel dev/microcode/yds
  79. filedel dev/microcode/zydas
  80. linedel "SUBDIR=" dev/microcode/Makefile
  81. linedel "symbol tigon tht" dev/microcode/Makefile
  82. filedel dev/pci/adv_pci.c
  83. filedel dev/pci/adw_pci.c
  84. filedel dev/pci/esa.c
  85. filedel dev/pci/esareg.h
  86. filedel dev/pci/esavar.h
  87. linedel "# AdvanSys 1200A, 1200B, and ULTRA SCSI controllers" dev/pci/files.pci
  88. linedel "# device declaration in sys/conf/files" dev/pci/files.pci
  89. linedel "adv_pci" dev/pci/files.pci
  90. linedel "adw_pci" dev/pci/files.pci
  91. linedel "# AdvanSys ULTRA WIDE SCSI controllers" dev/pci/files.pci
  92. linedel "# device declaration in sys/conf/files" dev/pci/files.pci
  93. linedel "# ESS Maestro3" dev/pci/files.pci
  94. linedel "esa" dev/pci/files.pci
  95. linedel "# Yamaha YMF Audio" dev/pci/files.pci
  96. linedel "yds" dev/pci/files.pci
  97. linedel "# NeoMagic 256AV and 256ZX" dev/pci/files.pci
  98. linedel "neo" dev/pci/files.pci
  99. linedel "# Intel EtherExpress PRO 10/100B" dev/pci/files.pci
  100. linedel "fxp_pci" dev/pci/files.pci
  101. linedel "# Tehuti Networks 10Gb Ethernet" dev/pci/files.pci
  102. linedel "thtc" dev/pci/files.pci
  103. linedel "# Myricom Myri-10G Ethernet" dev/pci/files.pci
  104. linedel "myx" dev/pci/files.pci
  105. linedel "# Broadcom BCM570[68] gigabit ethernet" dev/pci/files.pci
  106. linedel "bnx" dev/pci/files.pci
  107. linedel "# Ralink RT2500 PCI/Mini-PCI" dev/pci/files.pci
  108. linedel "ral_pci" dev/pci/files.pci
  109. apply