#!/bin/sh set -e [ -n "$DEVNAME" ] || exit 1 . /lib/hdparm/hdparm-functions if [ -e /proc/cmdline ]; then #linux only - future proofing against BSD and Hurd :) if grep -wq nohdparm /proc/cmdline ; then exit 0 fi fi raidstat=OK if [ -e /proc/mdstat ]; then if egrep -iq "resync|repair|recover|check" /proc/mdstat; then raidstat=RESYNC fi elif [ -e /proc/rd/status ]; then raidstat=`cat /proc/rd/status` fi if ! [ "$raidstat" = 'OK' ]; then exit 1 fi OPTIONS=$(hdparm_options $DEVNAME) if [ -n "$OPTIONS" ]; then /sbin/hdparm $OPTIONS $DEVNAME 2>/dev/null fi exit 0
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
hwdb.d | Folder | 0755 |
|
|
rules.d | Folder | 0755 |
|
|
ata_id | File | 42.16 KB | 0755 |
|
bcache-export-cached | File | 1.13 KB | 0755 |
|
bcache-register | File | 5.99 KB | 0755 |
|
bridge-network-interface | File | 952 B | 0755 |
|
cdrom_id | File | 54.16 KB | 0755 |
|
collect | File | 42.17 KB | 0755 |
|
hdparm | File | 583 B | 0755 |
|
hwclock-set | File | 776 B | 0755 |
|
hwdb.bin | File | 8.56 MB | 0444 |
|
libinput-device-group | File | 9.99 KB | 0755 |
|
libinput-model-quirks | File | 9.99 KB | 0755 |
|
mtd_probe | File | 5.98 KB | 0755 |
|
probe-bcache | File | 9.99 KB | 0755 |
|
scsi_id | File | 54.71 KB | 0755 |
|
snappy-app-dev | File | 38.07 KB | 0755 |
|
usb_modeswitch | File | 1.55 KB | 0755 |
|
v4l_id | File | 14.08 KB | 0755 |
|