#!/bin/sh # version 1.1 mkdir -m 0755 -p /dev/cpu/0 if ! [ -e /dev/cpu/0/msr ] ; then mknod /dev/cpu/0/msr -m 0444 c 202 0 ; fi if ! [ -e /dev/cpu/0/cpuid ] ; then mknod /dev/cpu/0/cpuid -m 0600 c 203 0 ; fi case "$1" in start|restart|force-reload) echo -n "Setting up Transmeta Longrun: " ####################### # Disk spindown (5 minutes = 60*5seconds) hdparm -S 60 /dev/hda longrun -f economy echo "Done" ;; stop) echo -n "Stopping up Transmeta Longrun: " ; ####################### # Disk spindown hdparm -S 0 /dev/hda #mkdir -p /dev/cpu/0 #if ! [ -e /dev/cpu/0/msr ] ; then #mknod /dev/cpu/0/msr c 202 0 ; #fi #if ! [ -e /dev/cpu/0/cpuid ] ; then #mknod /dev/cpu/0/cpuid c 203 0 ; #fi longrun -f performance ; echo "Done" ;; *) echo "Usage: /etc/init.d/longrun {start|stop|restart|force-reload}" exit 1 ;; esac exit 0