termux-connecting 1.1.41 → 1.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/termux-connecting +3 -3
- package/package.json +1 -1
package/bin/termux-connecting
CHANGED
|
@@ -209,9 +209,9 @@ if command -v termux-wake-lock >/dev/null; then
|
|
|
209
209
|
termux-wake-lock 2>/dev/null && info "Wake lock aktif — koneksi tetap terjaga saat layar mati"
|
|
210
210
|
fi
|
|
211
211
|
|
|
212
|
-
# notification — agar Android tidak kill Termux (
|
|
213
|
-
if command -v termux-notification >/dev/null; then
|
|
214
|
-
|
|
212
|
+
# notification — agar Android tidak kill Termux (non-blocking)
|
|
213
|
+
if command -v termux-notification >/dev/null && timeout 2 termux-notification --help >/dev/null 2>&1; then
|
|
214
|
+
termux-notification -t "Termux Connecting" -c "SSH server berjalan — port 8022" --id sshd-keepalive --ongoing >/dev/null 2>&1 &
|
|
215
215
|
fi
|
|
216
216
|
|
|
217
217
|
# battery optimization — buka setelan langsung
|