Retourner au contenu associé (journal : script shell)
Posté par passant·e le 17 mars 2004 à 23:17. En réponse au journal script shell. Évalué à 2.
Je trolle dès quand ça parle business, sécurité et sciences sociales
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
# Re: script shell
Posté par passant·e . En réponse au journal script shell. Évalué à 2.
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