HEX
Server: nginx/1.16.1
System: Linux ecs-04358622 4.19.90-2107.6.0.0100.oe1.bclinux.x86_64 #1 SMP Wed Dec 1 19:59:44 CST 2021 x86_64
User: nginx (994)
PHP: 8.0.0
Disabled: NONE
Upload Files
File: //lib/tuned/spindown-disk/script.sh
#!/bin/sh

. /usr/lib/tuned/functions

EXT_PARTITIONS=$(mount | grep -E "type ext(3|4)" | cut -d" " -f1)

start() {

    [ "$USB_AUTOSUSPEND" = 1 ] && enable_usb_autosuspend
    disable_bluetooth
    enable_wifi_powersave
    disable_logs_syncing

    remount_partitions commit=600,noatime $EXT_PARTITIONS
    sync

    return 0
}

stop() {

    [ "$USB_AUTOSUSPEND" = 1 ] && disable_usb_autosuspend
    enable_bluetooth
    disable_wifi_powersave
    restore_logs_syncing

    remount_partitions commit=5 $EXT_PARTITIONS

    return 0
}

process $@