Magellan Linux

Diff of /trunk/mkinitrd-magellan/livecd/linuxrc.sh

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

revision 1809 by niro, Mon Apr 23 13:07:35 2012 UTC revision 2154 by niro, Wed Aug 7 10:17:30 2013 UTC
# Line 108  do Line 108  do
108   unionfs) UNIONFS=yes;;   unionfs) UNIONFS=yes;;
109   unionfs_file=*) UNIONFS_FILE="${i#*=}";;   unionfs_file=*) UNIONFS_FILE="${i#*=}";;
110   rootdelay=*) ROOTDELAY="${i#*=}";;   rootdelay=*) ROOTDELAY="${i#*=}";;
111     cpufreq.governor=*) CPUFREQ_GOVERNOR="${i#*=}";;
112   esac   esac
113  done  done
114    
# Line 146  if [ ! -z "${ROOTDELAY}" ]; then Line 147  if [ ! -z "${ROOTDELAY}" ]; then
147   sleep ${ROOTDELAY}   sleep ${ROOTDELAY}
148  fi  fi
149    
150    # respect cpufreq.governor kernel param
151    if [ ! -z "${CPUFREQ_GOVERNOR}" ];
152    then
153     case "${CPUFREQ_GOVERNOR}" in
154     performance|conservative|powersave|ondemand|userspace)
155     echo "-- Set ${CPUFREQ_GOVERNOR} as default cpufreq.governor"
156     for cpu in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
157     do
158     echo "${CPUFREQ_GOVERNOR}" > "${cpu}"
159     done
160     ;;
161     *)
162     echo "-- Unknown cpufreq.governor ${CPUFREQ_GOVERNOR} selected, doing nothing"
163     ;;
164     esac
165    fi
166    
167  # searching cdrom with cdid  # searching cdrom with cdid
168  BOOT_DEVICE=""  BOOT_DEVICE=""
169  FSTYPE=""  FSTYPE=""

Legend:
Removed from v.1809  
changed lines
  Added in v.2154