837 |
# get firmware files if neccessary |
# get firmware files if neccessary |
838 |
if [ -x $(which modinfo 2> /dev/null) ] |
if [ -x $(which modinfo 2> /dev/null) ] |
839 |
then |
then |
840 |
firmware_blobs=$(modinfo ${module}${text} | grep 'firmware:' | sed 's:^firmware\:.*[[:space:]]\(.*\):\1:') |
firmware_blobs=$(modinfo -k ${kernel} ${module}${text} | grep 'firmware:' | sed 's:^firmware\:.*[[:space:]]\(.*\):\1:') |
841 |
if [[ ! -z ${firmware_blobs} ]] |
if [[ ! -z ${firmware_blobs} ]] |
842 |
then |
then |
843 |
for firmware in ${firmware_blobs} |
for firmware in ${firmware_blobs} |
854 |
add_initrd 'for i in $(cat /proc/cmdline); do case ${i} in rootdelay=*) ROOTDELAY="${i#*=}";; esac; done' |
add_initrd 'for i in $(cat /proc/cmdline); do case ${i} in rootdelay=*) ROOTDELAY="${i#*=}";; esac; done' |
855 |
add_initrd 'if [ ! -z "${ROOTDELAY}" ]; then echo "-- Requested a rootdelay of ${ROOTDELAY} seconds ..."; sleep ${ROOTDELAY};fi' |
add_initrd 'if [ ! -z "${ROOTDELAY}" ]; then echo "-- Requested a rootdelay of ${ROOTDELAY} seconds ..."; sleep ${ROOTDELAY};fi' |
856 |
|
|
857 |
|
# respect cpufreq.governor kernel param |
858 |
|
add_initrd 'for i in $(cat /proc/cmdline); do case ${i} in cpufreq.governor=*) CPUFREQ_GOVERNOR="${i#*=}";; esac; done' |
859 |
|
add_initrd 'if [ ! -z "${CPUFREQ_GOVERNOR}" ]; then case "${CPUFREQ_GOVERNOR}" in performance|conservative|powersave|ondemand|userspace) echo "-- Set ${CPUFREQ_GOVERNOR} as default cpufreq.governor"; for cpu in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do echo "${CPUFREQ_GOVERNOR}" > "${cpu}"; done;; *) echo "-- Unknown cpufreq.governor ${CPUFREQ_GOVERNOR} selected, doing nothing";; esac; fi' |
860 |
|
|
861 |
# lvm support |
# lvm support |
862 |
if [ -n "${vg_list}" ] |
if [ -n "${vg_list}" ] |
863 |
then |
then |