1
0
mirror of https://github.com/km4ack/patmenu2.git synced 2025-05-16 23:00:11 -07:00

add custom warning

This commit is contained in:
KM4ACK 2022-03-08 08:31:02 -06:00
parent 6482640f6f
commit 62b09bf3c9

View File

@ -24,6 +24,15 @@ yad --form --width=420 --text-align=center --center --title="Pat out of Date" --
exit exit
fi 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="<b>${WARNMSG}</b>" \
--button=gtk-ok
touch /run/user/$UID/patwarn.txt
fi
#verify call is set #verify call is set
if [ "$MYCALLSIGN" = "N0CALL" ]; then if [ "$MYCALLSIGN" = "N0CALL" ]; then
yad --title="N0CALL" --width=400 --height=100 \ yad --title="N0CALL" --width=400 --height=100 \