Handle spaces.
This commit is contained in:
parent
58098cc889
commit
23574e8871
1 changed files with 3 additions and 2 deletions
|
@ -79,9 +79,10 @@ device_powersave() {
|
|||
PSMODE=on
|
||||
;;
|
||||
esac
|
||||
for DEVICE in $(find /sys/devices -name control 2>/dev/null)
|
||||
find /sys/devices -name control -print0 | \
|
||||
while read -r -d '' DEVICE
|
||||
do
|
||||
echo ${PSMODE} >${DEVICE} 2>/dev/null
|
||||
echo ${PSMODE} >"${DEVICE}" 2>/dev/null
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue