projects
/
openwrt
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
mediatek: remove "Ralink" from the target name
[openwrt/openwrt.git]
/
target
/
linux
/
gemini
/
base-files
/
etc
/
board.d
/
03_hdparm
1
# SPDX-License-Identifier: GPL-2.0-only
2
# Spin down drives after one minute if inactive
3
4
if [ ! -n "$(command -v hdparm)" ]; then
5
exit 0
6
fi
7
8
DISKS=$(find /dev/sd[a-z] 2>/dev/null)
9
for DISK in $DISKS
10
do
11
if [ -b $DISK ] ; then
12
hdparm -S 12 $DISK > /dev/null
13
fi
14
done