Magellan Linux

Diff of /trunk/mkinitrd-magellan/mkinitrd.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1876 by niro, Wed Jul 11 09:57:18 2012 UTC revision 2904 by niro, Mon Nov 16 13:18:11 2015 UTC
# Line 837  do Line 837  do
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}
# Line 854  done Line 854  done
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

Legend:
Removed from v.1876  
changed lines
  Added in v.2904