From 18b9af79d7b5c2f832fd5b0f37ed4f86779c3033 Mon Sep 17 00:00:00 2001 From: KM4ACK Date: Wed, 24 Nov 2021 18:05:55 -0600 Subject: [PATCH] add disable auto download --- FA-functions | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/FA-functions b/FA-functions index 464bbad..a04e76d 100644 --- a/FA-functions +++ b/FA-functions @@ -30,7 +30,7 @@ exit AUTODOWN(){ FILE=/run/user/$UID/cronbkup.txt crontab -l > $FILE -HOURS=At-Boot,00,01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23 +HOURS=Disable,At-Boot,00,01,02,03,04,05,06,07,08,09,10,11,12,13,14,15,16,17,18,19,20,21,22,23 MINS=00,15,30,45 TEST=$(yad --center --wrap --width=350 --title="Auto Download" --text-align=center \ @@ -59,6 +59,12 @@ sed -i '/getardoplist/d' $FILE $MAIN & rm $FILE exit + elif [ $HOUR = 'Disable' ]; then + sed -i s'/getardoplist-cron/d' $FILE + crontab $FILE +yad --center --timeout=3 --timeout-indicator=top --no-buttons --text="Auto Download Disabled" \ +--image $LOGO --window-icon=$LOGO --image-on-top + $MAIN & exit else