Pagina 2 di 2 primaprima 1 2
Visualizzazione dei risultati da 11 a 12 su 12

Discussione: errore autenticazione

  1. #11
    che c'č un errore in /etc/init.d/cpufrequtils alla riga 18 ma non vedo dove

    posta tutto lo script vā
    Sotto la panza la mazza avanza.

  2. #12
    Utente di HTML.it L'avatar di alkat
    Registrato dal
    Jan 2004
    Messaggi
    4,189
    codice:
    $ cat /etc/init.d/cpufrequtils
    #!/bin/sh
    
    DESC="CPUFreq Utilities"
    
    PATH=/sbin:/bin
    PROGRAM=/usr/bin/cpufreq-set
    CPUFREQ_OPTIONS=''
    
    [ -x $PROGRAM ] || exit 0
    
    if [ -f /etc/default/cpufrequtils ] ; then
            . /etc/default/cpufrequtils
    else
            ENABLE="false"
    fi
    
    # if not enabled then exit gracefully
    [ "$ENABLE" == "true" ] || exit 0
    
    if [ $MAX_SPEED -gt 0 ] ; then
            CPUFREQ_OPTIONS="$CPUFREQ_OPTIONS --max $MAX_SPEED"
    fi
    
    if [ $MIN_SPEED -gt 0 ] ; then
            CPUFREQ_OPTIONS="$CPUFREQ_OPTIONS --min $MIN_SPEED"
    fi
    
    if [ -n $GOVERNOR ] ; then
            CPUFREQ_OPTIONS="$CPUFREQ_OPTIONS --governor $GOVERNOR"
    fi
    
    case "$1" in
            start|force-reload|restart|reload)
                    echo -n "$DESC: Setting $GOVERNOR CPUFreq governor"
                    $PROGRAM $CPUFREQ_OPTIONS
                    echo "."
                    ;;
            stop)
                    ;;
            *)
                    echo "Usage: $0 {start|stop|restart|reload|force-reload}"
                    exit 1
    esac
    
    exit 0
    Passa a Windows, Linux, Mac, BSD, Atari, Amiga, Unix o alle schede perforate. Fa come ti pare.
    ***
    "There's probably no God. Now stop worrying and enjoy your life" - Atheist Bus in England

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.