#!/bin/sh

if command -v lastlog >/dev/null
then
    echo lastlog
    lastlog
elif command -v lastlog2 >/dev/null
then
    echo lastlog2
    lastlog2
else
    echo 'lastlog nor lastlog2 found, please install lastlog2 or src:shadow'\''s login which shipped lastlog up to some point in time.  see https://www.debian.org/releases/trixie/release-notes/issues.en.html#the-last-lastb-and-lastlog-commands-have-been-replaced for Debian-specific information.'
fi
echo
