• # Re: script shell

    Posté par . En réponse au journal script shell. Évalué à 2.

    #!/bin/sh
    crt="/etc/X11/XF86Config.crt"
    lcdl="/etc/X11/XF86Config.lcd"
    target="/etc/X11/XF86Config"
    commande = "atitvout detect"

    if $commande | grep "CRT is" ; then
    cp $crt $target
    else
    cp $lcd $target
    fi

    tu mets ceci dans un script (ne pas oublier de le rendre executable) rc.screen et tu appel le script depuis rc.local

    Je trolle dès quand ça parle business, sécurité et sciences sociales