From 3f7c5074fda34fb14e85c080a4c25edabbd5dbec Mon Sep 17 00:00:00 2001 From: Rene Rebe Date: Tue, 30 Sep 2003 18:31:04 +0000 Subject: [PATCH] yet another piece of bootdisk target size reduction: disabling many never used kernel modules (shound, video, ...) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@1568 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- target/bootdisk/kernel.conf.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 target/bootdisk/kernel.conf.sh diff --git a/target/bootdisk/kernel.conf.sh b/target/bootdisk/kernel.conf.sh new file mode 100644 index 000000000..d9ab8aa7f --- /dev/null +++ b/target/bootdisk/kernel.conf.sh @@ -0,0 +1,14 @@ +# here we disable driver we'll most probably not need on the bootdisk + +echo "bootdisk target -> disabling some modules ..." + +sed -e "s/CONFIG_SOUND\(.*\)=./# CONFIG_SOUND\1 is not set/" \ + -e "s/CONFIG_VIDEO\(.*\)=./# CONFIG_VIDEO\1 is not set/" \ + -e "s/CONFIG_PHONE\(.*\)=./# CONFIG_PHONE\1 is not set/" \ + -e "s/CONFIG_RADIO\(.*\)=./# CONFIG_RADIO\1 is not set/" \ + -e "s/CONFIG_HAMRADIO\(.*\)=./# CONFIG_HAMRADIO\1 is not set/" \ + -e "s/CONFIG_ATM\(.*\)=./# CONFIG_ATM\1 is not set/" \ + $1 > .config.server + +mv .config.server $1 +