From 62b09bf3c979c8b44ad48e03bb9f21b8b5f209ee Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Tue, 8 Mar 2022 08:31:02 -0600 Subject: [PATCH] add custom warning --- patmenu | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/patmenu b/patmenu index 9b07ade..e5be81a 100755 --- a/patmenu +++ b/patmenu @@ -24,6 +24,15 @@ yad --form --width=420 --text-align=center --center --title="Pat out of Date" -- exit fi +if [ $WARN = 'yes' ] && [ ! -f /run/user/$UID/patwarn.txt ]; then +#give user warning message +yad --form --width=420 --text-align=center --center --title="WARNING!!" --text-align=center \ +--image $LOGO --window-icon=$LOGO --image-on-top --separator="|" --item-separator="|" \ +--text="${WARNMSG}" \ +--button=gtk-ok +touch /run/user/$UID/patwarn.txt +fi + #verify call is set if [ "$MYCALLSIGN" = "N0CALL" ]; then yad --title="N0CALL" --width=400 --height=100 \