1 KERNEL_VERSION=2.6.38-netbook-ice
4 #if the netbook is an eeepc 901 (atom with ssd) add this file
5 if [ "$(dmidecode -s system-product-name | sed 's/[ \t]*$//')" = 901 ] ; then
6 echo '# ensure our SSD drive is set up as non-rotational
7 ACTION=="add" SUBSYSTEM=="block", SUBSYSTEMS=="pci", ATTRS{subsystem_vendor}=="0x1043", ATTRS{subsystem_device}=="0x82d8", ATTR{queue/rotational}="0"
8 ACTION=="add" SUBSYSTEM=="block", SUBSYSTEMS=="pci", ATTRS{subsystem_vendor}=="0x1043", ATTRS{subsystem_device}=="0x830f", ATTR{queue/rotational}="0"' > /etc/udev/rules.d/61-eee-ssd.rules
12 echo -e ">> Updating module dependencies"
13 depmod -a -v $KERNEL_VERSION > /dev/null 2>&1
14 echo -e ">> Generating initrd"
15 mkinitcpio -p kernel-netbook-ice
17 echo -e ">> If you don't need the headers you can remove them with:"
18 echo -e ">> pacman -R kernel-netbook-ice-headers"
20 echo -e ">> Project page and Issues report:"
21 echo -e ">> http://code.google.com/p/kernel-netbook/"
26 echo -e ">> Updating module dependencies"
27 depmod -a -v $KERNEL_VERSION > /dev/null 2>&1
28 echo -e ">> Generating initrd"
29 mkinitcpio -p kernel-netbook-ice
31 echo -e ">> Project page and Issues report:"
32 echo -e ">> http://code.google.com/p/kernel-netbook/"
35 rm -f /boot/kernel-netbook-ice.img