Skip to content

Commit e620084

Browse files
committed
**v2021.9.3 (202109030)**
- Fixed "boot schedules not working" (thanks, @rhayy) - Updated config examples
1 parent 9a8d2c2 commit e620084

File tree

5 files changed

+50
-47
lines changed

5 files changed

+50
-47
lines changed

README.html

+17-16
Original file line numberDiff line numberDiff line change
@@ -106,23 +106,24 @@ <h2 id="prerequisites">PREREQUISITES</h2>
106106
<p>Other executables or static binaries can also be placed in /data/adb/vr25/bin/ (with proper permissions) instead of being installed system-wide.</p>
107107
<hr>
108108
<h2 id="configuration-dataadbvr25djs-dataconfigtxt">CONFIGURATION (/data/adb/vr25/djs-data/config.txt)</h2>
109-
<pre><code><code><div>// This is a comment line
109+
<pre><code><code><div># This is a comment line.
110+
# All lines that do not match a schedule instruction are ignored, regardless of the '#'.
110111

111-
// This is used to determine whether config should be patched. Do NOT modify!
112+
# This is used to determine whether this file should be patched. Do NOT modify!
112113
versionCode=201908180
113114

114-
// Schedule Examples
115+
# Schedule Examples
115116

116-
// Run on boot
117-
// boot touch /data/I-was-born-on-boot; : --delete
118-
// &quot;: --delete&quot; is optional; it means &quot;delete the schedule after execution&quot; - effectively turning it into a one-time boot schedule.
117+
# Run on boot
118+
#boot touch /data/I-was-born-on-boot; : --delete
119+
# &quot;: --delete&quot; is optional; it means &quot;delete the schedule after execution&quot; - effectively turning it into a one-time boot schedule.
119120

120-
// Apply Advanced Charging Controller night settings at 22:00
121-
//2200 acc 45 44 &amp;&amp; acc --set applyOnPlug usb/current_max:500000
121+
# Apply Advanced Charging Controller night settings at 22:00
122+
#2200 acc pc=45 rc=44 mcc=500000 mcv=3920
122123

123-
// Restore regular ACC settings at 6:00 (morning)
124-
//0600 acc 80 70 &amp;&amp; acc -s applyOnPlug 2000000; : --boot
125-
// &quot;: --boot&quot; is optional; it lets this schedule run on boot as well (fail-safe).
124+
# Restore regular ACC settings at 6:00 (morning)
125+
#0600 acc pc=75 rc=70 mcc= mcv=; : --boot
126+
# &quot;: --boot&quot; is optional; it makes this schedule run on boot as well (e.g., as part of a fail-safe plan).
126127
</div></code></code></pre>
127128
<hr>
128129
<h2 id="usage">USAGE</h2>
@@ -230,11 +231,6 @@ <h2 id="links">LINKS</h2>
230231
</ul>
231232
<hr>
232233
<h2 id="latest-changes">LATEST CHANGES</h2>
233-
<p><strong>v2021.8.9.1 (202108091)</strong></p>
234-
<ul>
235-
<li>Rewritten daemon logic for better efficiency and reliability.</li>
236-
<li>Updated documentation</li>
237-
</ul>
238234
<p><strong>v2021.8.23 (202108230)</strong></p>
239235
<ul>
240236
<li>-L|--log [cmd] (default cmd: tail -F), djsd generates verbose (/dev/.vr25/djs/djsd.log).</li>
@@ -246,6 +242,11 @@ <h2 id="latest-changes">LATEST CHANGES</h2>
246242
<ul>
247243
<li>Fixed daemon startup issue.</li>
248244
<li>Updated framework (it uses acc's) and documentation</li>
245+
</ul>
246+
<p><strong>v2021.9.3 (202109030)</strong></p>
247+
<ul>
248+
<li>Fixed &quot;boot schedules not working&quot; (thanks, @rhayy)</li>
249+
<li>Updated config examples</li>
249250
</ul>
250251

251252
</body>

README.md

+18-17
Original file line numberDiff line numberDiff line change
@@ -91,23 +91,24 @@ Other executables or static binaries can also be placed in /data/adb/vr25/bin/ (
9191
## CONFIGURATION (/data/adb/vr25/djs-data/config.txt)
9292

9393
```
94-
// This is a comment line
94+
# This is a comment line.
95+
# All lines that do not match a schedule instruction are ignored, regardless of the '#'.
9596
96-
// This is used to determine whether config should be patched. Do NOT modify!
97+
# This is used to determine whether this file should be patched. Do NOT modify!
9798
versionCode=201908180
9899
99-
// Schedule Examples
100+
# Schedule Examples
100101
101-
// Run on boot
102-
// boot touch /data/I-was-born-on-boot; : --delete
103-
// ": --delete" is optional; it means "delete the schedule after execution" - effectively turning it into a one-time boot schedule.
102+
# Run on boot
103+
#boot touch /data/I-was-born-on-boot; : --delete
104+
# ": --delete" is optional; it means "delete the schedule after execution" - effectively turning it into a one-time boot schedule.
104105
105-
// Apply Advanced Charging Controller night settings at 22:00
106-
//2200 acc 45 44 && acc --set applyOnPlug usb/current_max:500000
106+
# Apply Advanced Charging Controller night settings at 22:00
107+
#2200 acc pc=45 rc=44 mcc=500000 mcv=3920
107108
108-
// Restore regular ACC settings at 6:00 (morning)
109-
//0600 acc 80 70 && acc -s applyOnPlug 2000000; : --boot
110-
// ": --boot" is optional; it lets this schedule run on boot as well (fail-safe).
109+
# Restore regular ACC settings at 6:00 (morning)
110+
#0600 acc pc=75 rc=70 mcc= mcv=; : --boot
111+
# ": --boot" is optional; it makes this schedule run on boot as well (e.g., as part of a fail-safe plan).
111112
```
112113

113114
---
@@ -242,12 +243,6 @@ Always provide as much information as possible.
242243
## LATEST CHANGES
243244

244245

245-
**v2021.8.9.1 (202108091)**
246-
247-
- Rewritten daemon logic for better efficiency and reliability.
248-
- Updated documentation
249-
250-
251246
**v2021.8.23 (202108230)**
252247

253248
- -L|--log [cmd] (default cmd: tail -F), djsd generates verbose (/dev/.vr25/djs/djsd.log).
@@ -260,3 +255,9 @@ Always provide as much information as possible.
260255

261256
- Fixed daemon startup issue.
262257
- Updated framework (it uses acc's) and documentation
258+
259+
260+
**v2021.9.3 (202109030)**
261+
262+
- Fixed "boot schedules not working" (thanks, @rhayy)
263+
- Updated config examples

djs/default-config.txt

+12-11
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
// This is a comment line
1+
# This is a comment line.
2+
# All lines that do not match a schedule instruction are ignored, regardless of the '#'.
23

3-
// This is used to determine whether config should be patched. Do NOT modify!
4+
# This is used to determine whether this file should be patched. Do NOT modify!
45
versionCode=201908180
56

6-
// Schedule Examples
7+
# Schedule Examples
78

8-
// Run on boot
9-
// boot touch /data/I-was-born-on-boot; : --delete
10-
// ": --delete" is optional; it means "delete the schedule after execution" - effectively turning it into a one-time boot schedule.
9+
# Run on boot
10+
#boot touch /data/I-was-born-on-boot; : --delete
11+
# ": --delete" is optional; it means "delete the schedule after execution" - effectively turning it into a one-time boot schedule.
1112

12-
// Apply Advanced Charging Controller night settings at 22:00
13-
//2200 acc 45 44 && acc --set applyOnPlug usb/current_max:500000
13+
# Apply Advanced Charging Controller night settings at 22:00
14+
#2200 acc pc=45 rc=44 mcc=500000 mcv=3920
1415

15-
// Restore regular ACC settings at 6:00 (morning)
16-
//0600 acc 80 70 && acc -s applyOnPlug 2000000; : --boot
17-
// ": --boot" is optional; it lets this schedule run on boot as well (fail-safe).
16+
# Restore regular ACC settings at 6:00 (morning)
17+
#0600 acc pc=75 rc=70 mcc= mcv=; : --boot
18+
# ": --boot" is optional; it makes this schedule run on boot as well (e.g., as part of a fail-safe plan).

djs/djs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ ln -sf $execDir/djs-version.sh /dev/djs-version
7777
# boot schedules
7878
if [ ! -f $tmpDir/djsd-boot.sh ]; then
7979
echo "#!/system/bin/sh" > $tmpDir/djsd-boot.sh
80-
grep '^boot | : --boot' $config | sed 's/^.... //' >> $tmpDir/djsd-boot.sh
80+
grep -E '^boot | : --boot' $config | sed 's/^.... //' >> $tmpDir/djsd-boot.sh
8181
echo 'exit $?' >> $tmpDir/djsd-boot.sh
8282
chmod u+x $tmpDir/djsd-boot.sh
8383
start-stop-daemon -bx $tmpDir/djsd-boot.sh -S --

module.prop

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
id=djs
22
name=Daily Job Scheduler (DJS)
3-
version=v2021.8.26
4-
versionCode=202108260
3+
version=v2021.9.3
4+
versionCode=202109030
55
author=VR25
66
description=Runs commands and scripts on boot and at HH:MM. Any root solution is supported. The installation is always "system-less", whether or not the system is rooted with Magisk.

0 commit comments

Comments
 (0)