Debian Codegraph @

usr/share/laptop-mode-tools/modules/nouveau

raw
1 #! /bin/sh
2
3 if [ x$CONTROL_NOUVEAU = x1 ] || [ x$ENABLE_AUTO_MODULES = x1 -a x$CONTROL_NOUVEAU = xauto ]; then
4 if [ -f $NOUVEAU_CONTROL_FILE ]; then
5 if [ $ON_AC -eq 1 ]; then
6 if [ $ACTIVATE -eq 1 ]; then
7 NOUVEAU_VALUE="$LM_AC_NOUVEAU"
8 else
9 NOUVEAU_VALUE="$NOLM_AC_NOUVEAU"
10 fi
11 else
12 NOUVEAU_VALUE="$BATT_NOUVEAU"
13 fi
14
15 echo $NOUVEAU_VALUE > $NOUVEAU_CONTROL_FILE
16 else
17 log "VERBOSE" "Control file $NOUVEAU_CONTROL_FILE unavailable"
18 fi
19 else
20 log "VERBOSE" "Module nouveau is disabled"
21 fi
22