woof_base_hack.old 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. #option to remove Thunar.desktop if not part of build
  10. echo
  11. echo "do you want to install Thunar as a base package"
  12. echo "hit \"t\" [enter] for yes, Enter only for no."
  13. read THUNAR
  14. if [ "$THUNAR" != "t" ];then
  15. if [ -f rootfs-complete/usr/share/applications/Thunar.desktop ];then
  16. rm -f rootfs-complete/usr/share/applications/Thunar.desktop
  17. echo "removing Thunar.desktop"
  18. else
  19. echo "Thunar.desktop not present"
  20. fi
  21. else
  22. echo "leaving Thunar.desktop"
  23. fi
  24. #option to remove video-upgrade-wizard
  25. echo
  26. echo "do you want to remove video-upgrade-wizard? hit \"y\" for yes"
  27. read NOVIDWIZ
  28. if [ "$NOVIDWIZ" = "y" ];then
  29. [ -f rootfs-complete/usr/share/applications/video-upgrade-wizard.desktop ] && \
  30. rm -f rootfs-complete/usr/share/applications/video-upgrade-wizard.desktop
  31. echo "removing video-upgrade-wizard.desktop"
  32. cat > vidwiz.patch <<_PATCH
  33. --- rootfs-complete/usr/sbin/wizardwizard 2010-10-19 14:42:44.000000000 +0800
  34. +++ rootfs-complete/usr/sbin/wizardwizard-new 2011-08-19 09:09:05.000000000 +0800
  35. @@ -70,16 +70,6 @@ export WizardWizard="
  36. <hbox>
  37. <text>
  38. - <label>Upgrade X drivers...</label>
  39. - </text>
  40. - <button>
  41. - <input file>/usr/local/lib/X11/mini-icons/x16.xpm</input>
  42. - <action>/usr/sbin/video_upgrade_wizard & </action>
  43. - </button>
  44. - </hbox>
  45. -
  46. - <hbox>
  47. - <text>
  48. <label>Connect to Internet or Intranet...</label>
  49. </text>
  50. <button>
  51. _PATCH
  52. patch -p0 < vidwiz.patch
  53. if [ $? -ne 0 ];then echo "FAILED patching /usr/sbin/wizardwizard"
  54. rm -f rootfs-complete/usr/sbin/*.rej
  55. rm -f vidwiz.patch
  56. #exit 1
  57. else
  58. echo "patching /usr/sbin/wizardwizard succeeded"
  59. rm -f vidwiz.patch
  60. fi
  61. else echo "Ok, video wizard is staying"
  62. fi
  63. #set PPM gui preference
  64. echo
  65. echo "Do you want the Classic gui or the Ziggy gui for PPM?"
  66. echo "hit \"z\" [enter] for Ziggy, Enter only for Classic."
  67. read ZIGGY
  68. if [ "$ZIGGY" = "z" ];then
  69. ZIGSET="UI=\"Ziggy\""
  70. CLASET="UI=\"Classic\""
  71. sed -i "s%$CLASET%$ZIGSET%" rootfs-complete/usr/local/petget/configure.sh
  72. sed -i "s%$CLASET%$ZIGSET%" rootfs-complete/usr/local/petget/pkg_chooser.sh
  73. echo "PPM gui set to \"Ziggy\""
  74. else echo "Leaving PPM gui set to \"Classic\""
  75. fi
  76. #custom Slacko images, optional #commented 111015
  77. #echo
  78. #echo "Do you want to have the custom Slacko images?"
  79. #echo "These are the boot image and a blue Puppy logo instead of grey"
  80. #echo "\"y\" > enter for yes, enter to skip"
  81. #read SLACK
  82. #if [ "$SLACK" = "y" ];then
  83. #cp -f ../support/slacko/s_puppylogo48.png rootfs-complete/usr/share/doc/puppylogo48.png
  84. #cp -f ../support/slacko/s_puppylogo96.png rootfs-complete/usr/share/doc/puppylogo96.png
  85. #[ ! -f ../boot/boot-dialog/puppy.gifORIG ] && mv ../boot/boot-dialog/puppy.gif ../boot/boot-dialog/puppy.gifORIG
  86. #cp -f ../support/slacko/S_puppy.gif ../boot/boot-dialog/puppy.gif
  87. #echo "Custom Slacko logos applied"
  88. #else
  89. #echo "leaving standard Puppy logos"
  90. #cp -f ../boot/boot-dialog/puppy.gifORIG ../boot/boot-dialog/puppy.gif
  91. #fi
  92. echo "fixing jwm"
  93. head -n6 rootfs-complete/root/.jwm/jwm_colors > /tmp/jwm_colors
  94. cp -af /tmp/jwm_colors rootfs-complete/root/.jwm/
  95. rm -f /tmp/jwm_colors
  96. echo "fixing gtkrc theme"
  97. head -n2 rootfs-complete/root/.gtkrc-2.0 > /tmp/.gtkrc-2.0
  98. echo '
  99. style "user-font" {
  100. font_name = "Sans 12"
  101. }
  102. widget_class "*" style "user-font"
  103. gtk-font-name="Sans 12"
  104. include "/root/.gtkrc.mine"
  105. # -- THEME AUTO-WRITTEN DO NOT EDIT' >> /tmp/.gtkrc-2.0
  106. cp -af /tmp/.gtkrc-2.0 rootfs-complete/root/
  107. rm -f /tmp/.gtkrc-2.0
  108. #echo "fixing PKGS_MANAGEMENT for Slacko repo only"
  109. #grep -v 'PKG_REPOS_ENABLED=' rootfs-complete/root/.packages/PKGS_MANAGEMENT > /tmp/PKGS_MANAGEMENT
  110. #echo "PKG_REPOS_ENABLED=' Packages-puppy-slacko-official '" >> /tmp/PKGS_MANAGEMENT
  111. #cp -af /tmp/PKGS_MANAGEMENT rootfs-complete/root/.packages/
  112. #rm -f /tmp/PKGS_MANAGEMENT
  113. echo
  114. echo "Slacko customisation complete"
  115. exit 0