first commit

This commit is contained in:
Oliver Bohlen
2022-07-06 12:24:21 +02:00
commit 292dc8ccff
46 changed files with 1323 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#!/bin/bash
function g_echo_error {
echo -en "\033[97m$(g_date_print) \033[31mERROR:" 1>&2
cat <<< "$@" 1>&2
echo -en "\033[0m" 1>&2
g_logger ERROR: $@
if ! [ $0 = /usr/local/bin/notify.sh ]
then
if [ -x /data/debian/usr/local/bin/notify.sh ]
then
cat <<< "$(date "+%F %T") $(hostname) $0($$) ERROR: $@ " | debian-chroot.sh /usr/local/bin/notify.sh
elif [ -x /usr/local/bin/notify.sh ]
then
cat <<< "$(date "+%F %T") $(hostname) $0($$) ERROR: $@" | /usr/local/bin/notify.sh
fi
fi
[ -z $DISPLAY ] || zenity --error --ellipsize --text="$@"
}