Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
mxtools/checktrust/getty-checktrust
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
14 lines (12 sloc)
437 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/bash | |
if [ "$(/usr/sbin/checktrust)" = "not trusted" ]; then | |
mkdir -p /node/issue.d | |
cat > /node/issue.d/notrust.issue <<EOF | |
** WARNING: Loss of trust detected ** | |
** Looks like your machine lost the trust of our network. Maybe it was offline for too long. ** | |
** You won't be able to log in. ** | |
** Please contact IT Helpdesk: <helpdesk@molgen.mpg.de>, phone: -1708 ** | |
EOF | |
else | |
rm -f /node/issue.d/notrust.issue | |
fi |