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.

25 lines
1.2 KiB

  1. # here we disable settings we'll most probably not need on the bootdisk
  2. echo "bootdisk target -> disabling some settings ..."
  3. sed -e "s/CONFIG_SOUND\(.*\)=./# CONFIG_SOUND\1 is not set/" \
  4. -e "s/CONFIG_VIDEO\(.*\)=./# CONFIG_VIDEO\1 is not set/" \
  5. -e "s/CONFIG_PHONE\(.*\)=./# CONFIG_PHONE\1 is not set/" \
  6. -e "s/CONFIG_RADIO\(.*\)=./# CONFIG_RADIO\1 is not set/" \
  7. -e "s/CONFIG_HAMRADIO\(.*\)=./# CONFIG_HAMRADIO\1 is not set/" \
  8. -e "s/CONFIG_ATM\(.*\)=./# CONFIG_ATM\1 is not set/" \
  9. -e "s/CONFIG_AGP\(.*\)=./# CONFIG_AGP\1 is not set/" \
  10. -e "s/CONFIG_SMP\(.*\)=./# CONFIG_SMP\1 is not set/" \
  11. -e "s/CONFIG_PCI_NAMES\(.*\)=./# CONFIG_PCI_NAMES\1 is not set/" \
  12. -e "s/CONFIG_INPUT_JOYDEV\(.*\)=./# CONFIG_INPUT_JOYDEV\1 is not set/" \
  13. -e "s/CONFIG_ACPI\(.*\)=./# CONFIG_ACPI\1 is not set/" \
  14. -e "s/CONFIG_GAMEPORT\(.*\)=./# CONFIG_GAMEPORT\1 is not set/" \
  15. -e "s/CONFIG_IEEE1394\(.*\)=./CONFIG_IEEE1394\1=m/" \
  16. -e "s/CONFIG_IP_NF\(.*\)=./CONFIG_IP_NF\1=m/" \
  17. -e "s/# CONFIG_EMBEDDED is not set/CONFIG_EMBEDDED=y/" \
  18. -e "s/CONFIG_KALLSYMS=./# CONFIG_KALLSYMS is not set/" \
  19. -e "s/CONFIG_IOSCHED_AS=./# CONFIG_IOSCHED_AS is not set/" \
  20. $1 > .config.boot
  21. mv .config.boot $1