woof_base_hack 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #!/bin/sh
  2. #woof patches
  3. #run this in the root dir of the woof tree #old, now runs from 3builddistro
  4. #(C)01micko gpl3 (see /usr/share/doc/legal)
  5. #20110819
  6. #110822 BK modified, called from 3builddistro. runs with current-dir in 'sandbox3'.
  7. #110825 01micko: some fixes.
  8. #111015 01micko, remove icon and boot screen fixes, integrated in woof
  9. #121108 01micko, fix gconv-modules.cache
  10. #130801 removed fixes for dpi (gtkrc), remove old repos to help ppm
  11. #140619 cleanup for 14.1
  12. . ../DISTRO_SPECS
  13. echo
  14. echo "Fixing jwm"
  15. head -n6 rootfs-complete/root/.jwm/jwm_colors > /tmp/jwm_colors
  16. cp -af /tmp/jwm_colors rootfs-complete/root/.jwm/
  17. rm -f /tmp/jwm_colors
  18. # get rid of alsaconf, copied back in in 3builddistro
  19. cat > rootfs-complete/usr/sbin/alsaconf <<_EOF
  20. #!/bin/sh
  21. Xdialog --title "alsaconf" --msgbox "Alsaconf is removed pending a fix \
  22. \n\nPlease try the Multiple Sound Card Wizard then \
  23. \n configure retrovol (the volume icon, right click)" 0 0
  24. _EOF
  25. #make sure still execuatble
  26. chmod 755 rootfs-complete/usr/sbin/alsaconf
  27. echo "Disabling alsaconf"
  28. #121108 fix up gconv-modules.cache
  29. # ***NOTICE*** cross-build, this will have to be executed at first boot... #01micko 121108
  30. if [ "$WOOF_HOSTARCH" = "$WOOF_TARGETARCH" ];then
  31. [ ! -f rootfs-complete/usr/lib/gconv/gconv-modules.cache ] && chroot rootfs-complete /usr/sbin/iconvconfig
  32. fi
  33. echo "Generating /usr/lib/gconv/gconv-modules.cache"
  34. echo "Removing old slacko and wary5 repos"
  35. echo "fixing missing sylinks"
  36. (cd rootfs-complete/usr/bin; ln -sf ../../bin/sed . ; ln -sf ../../bin/grep . )
  37. echo "Removing udev from Packages-slackware-${DISTRO_COMPAT_VERSION}-official"
  38. sed -i '/^udev/d' rootfs-complete/root/.packages/Packages-slackware-${DISTRO_COMPAT_VERSION}-official
  39. echo
  40. echo "Slacko customisation complete"
  41. echo
  42. #exit 0