sys_rebrand.sh 788 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/sh
  2. ########################################
  3. # name: sys_rebrand.sh
  4. # main: jadedctrl
  5. # lisc: isc
  6. # desc: rebranding obsd kernel sources
  7. # for use in lbsd.
  8. ########################################
  9. . ./libdeblob.sh
  10. if test -z "$1"; then
  11. echo "usage: sys_rebrand.sh kernel_sources"
  12. exit 2
  13. else
  14. SRC_DIR="$1"
  15. fi
  16. PATCH_DIR=/tmp/sys_rebrand
  17. mkdir "$PATCH_DIR" 2> /dev/null
  18. # --------------------------------------
  19. # arch_list="alpha amd64 armish armv7 hppa i386 landisk loongson luna88k macppc
  20. # arch-list="$arch_list miniroot octeon sgi socppc sparc sparc64 vax zaurus"
  21. arch_list="amd64 i386"
  22. for arch in $arch_list
  23. do
  24. rep "no OpenBSD" "no LibertyBSD" "arch/${arch}/stand/libsa/biosdev.c"
  25. done
  26. rep ">> OpenBSD/\" MACHINE" ">> LibertyBSD/\" MACHINE" stand/boot/boot.c
  27. apply