Configuration: Unterschied zwischen den Versionen

Aus wiki.frank-wulf.de
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
 
(7 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
===Avoid hard drives spinning up by SSH Login===
* [[Avoid hard drives spinning up by SSH Login]]
The script '''/usr/lib/update-notifier/update-motd-fsck-at-reboot''' scans all drives to show in welcome message (motd) which of them will be checked for errors at the next reboot.
* [[Avoid hard drives spinning up by writing file access times]]
 
* [[Switch off internal power management for Seagate hard drives]]
<syntaxhighlight lang="bash" highlight="10-14">#!/bin/sh
* [[Suppress "No mail" message after SSH Login]]
# Authors:
* [[Changes/Adjustments after Upgrade from Ubuntu 18.04.6 to 20.04.1]]
#  Mads Chr. Olesen <mads@mchro.dk>
#  Kees Cook <kees@ubuntu.com>
set -e
 
# poor mans force
if [ "$1" = "--force" ]; then
    NEEDS_FSCK_CHECK=yes
#>>>2019-10-11 Frank Wulf
# Exit script as otherwise it spins up hard drives during login
else
    exit 0
#<<<2019-10-11 Frank Wulf
fi
...
</syntaxhighlight>

Aktuelle Version vom 3. August 2023, 21:03 Uhr