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:
parent
6482640f6f
commit
62b09bf3c9
9
patmenu
9
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="<b>${WARNMSG}</b>" \
|
||||
--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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user