diff --git a/module/bindhosts.sh b/module/bindhosts.sh index 11bb69c..98428dc 100644 --- a/module/bindhosts.sh +++ b/module/bindhosts.sh @@ -88,15 +88,16 @@ enable_cron() { echo "[+] running crond" busybox crond -bc $PERSISTENT_DIR/crontabs -L /dev/null } - echo "[+] adding crontab entry" echo "0 4 * * * sh /data/adb/modules/bindhosts/bindhosts.sh --force-update > $rwdir/bindhosts_cron.log 2>&1 &" | busybox crontab -c $PERSISTENT_DIR/crontabs - + echo "[>] $(head -n1 $PERSISTENT_DIR/crontabs/root) " + echo "[+] crontab entry added!" } disable_cron() { if grep -q "bindhosts.sh" $PERSISTENT_DIR/crontabs/root > /dev/null 2>&1; then - echo "[ ] removing crontab entry" - echo "[ ] $(head -n1 $PERSISTENT_DIR/crontabs/root) " + echo "[>] $(head -n1 $PERSISTENT_DIR/crontabs/root) " rm -rf $PERSISTENT_DIR/crontabs + echo "[x] crontab entry removed!" else echo "[x] no crontab entry found!" fi