blob: 340a2b1ea630b0e5affac3e5279d7ba63a766052 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
aspm="/sys/module/pcie_aspm/parameters/policy"
[ -w "$aspm" ] || exit $NA
case $1 in
true) echo powersave > "$aspm";;
false) echo default > "$aspm";;
*) exit $NA;;
esac
exit 0
|