404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.17.71.93: ~ $
#!/bin/sh
# This file is part of cloud-init. See LICENSE file for license information.

# Purpose: show user warnings on login.

cloud_init_warnings() {
    command -v local >/dev/null && local _local="local" ||
        typeset _local="typeset"
    $_local warning="" idir="/var/lib/cloud/instance" n=0
    $_local warndir="$idir/warnings"
    $_local ufile="$HOME/.cloud-warnings.skip" sfile="$warndir/.skip"
    [ -d "$warndir" ] || return 0
    [ ! -f "$ufile" ] || return 0
    [ ! -f "$sfile" ] || return 0

    for warning in "$warndir"/*; do
        [ -f "$warning" ] || continue
        cat "$warning"
        n=$((n+1))
    done
    [ $n -eq 0 ] && return 0
    echo ""
    echo "Disable the warnings above by:"
    echo "  touch $ufile"
    echo "or"
    echo "  touch $sfile"
}

cloud_init_warnings 1>&2
unset cloud_init_warnings

# vi: syntax=sh ts=4 expandtab

Filemanager

Name Type Size Permission Actions
01-locale-fix.sh File 96 B 0644
Z97-byobu.sh File 1.52 KB 0644
Z99-cloud-locale-test.sh File 3.34 KB 0755
Z99-cloudinit-warnings.sh File 873 B 0755
apps-bin-path.sh File 835 B 0644
bash_completion.sh File 664 B 0644
cedilla-portuguese.sh File 1003 B 0644
vte-2.91.sh File 1.9 KB 0644