From df048145682f9fd91c79a6e445c1153c60f9e9bf Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Sun, 14 Jun 2020 10:54:43 -0500 Subject: [PATCH] update --- .complete | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 .complete diff --git a/.complete b/.complete new file mode 100755 index 0000000..5789b72 --- /dev/null +++ b/.complete @@ -0,0 +1,34 @@ +#!/bin/bash + +MYPATH=$HOME/pi-build +LOGO=$MYPATH/logo.png + +cat < $MYPATH/boot.txt +Build-a-Pi Build Complete. + +If you found this script helpful +consider a donation to encourage +future development. + +https://paypal.me/km4ack + +73, de KM4ACK + +EOF + +OUT=$(yad --width=550 --height=300 --text-align=center --center --title="Build-a-Pi" --show-uri \ +--image $LOGO --window-icon=$LOGO --image-on-top --separator="|" --item-separator="|" \ +--text-info<$MYPATH/boot.txt \ +--button="CLOSE":2 > /dev/null 2>&1) +BUT=$? +if [ $BUT = 252 ]; then +rm $MYPATH/boot.txt +crontab -l > $HOME/Documents/cron.tmp +sed -i 's/@reboot\ sleep\ 10.*//' $HOME/Documents/cron.tmp +crontab $HOME/Documents/cron.tmp +exit +fi +rm $MYPATH/boot.txt +crontab -l > $HOME/Documents/cron.tmp +sed -i 's/@reboot\ sleep\ 10.*//' $HOME/Documents/cron.tmp +crontab $HOME/Documents/cron.tmp